From a0b72c06af3d3500a35e9fa6fdd6bff94773f920 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Thu, 20 Jun 2024 12:00:53 -0400 Subject: feat: add `set date & time` to `myawesomemenu` --- .config/awesome/rc-4.3-3.lua | 18 +++++++++--------- .config/awesome/rc.lua | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.config/awesome/rc-4.3-3.lua b/.config/awesome/rc-4.3-3.lua index b9338bf..aa0bbf6 100644 --- a/.config/awesome/rc-4.3-3.lua +++ b/.config/awesome/rc-4.3-3.lua @@ -95,22 +95,22 @@ myawesomemenu = { { "dunstctl", dunst_menu }, { "config file", editor .. " " .. awesome.conffile }, { "picom config", function() awful.spawn.easy_async_with_shell("xfce4-terminal -x nvim $HOME/.config/picom.conf") end }, + { "set date & time", function() awful.spawn.easy_async_with_shell("~/.local/bin/GUI-dateTime") end }, { "change wallpaper", function() awful.spawn.easy_async_with_shell("sh -c 'nitrogen'") end }, { "xdg_menu refresh", function() awful.spawn.easy_async_with_shell( "sh -c 'xdg_menu --format awesome --root-menu /etc/xdg/menus/arch-applications.menu > ~/.config/awesome/xdgmenu.lua'") end }, - { "soft-reboot", function() awful.spawn("sh -c 'systemctl soft-reboot'") end }, - { "reboot", function() awful.spawn("sh -c 'systemctl reboot'") end }, - { "refresh", awesome.restart }, + { "soft-reboot", function() awful.spawn("sh -c 'systemctl soft-reboot'") end }, + { "reboot", function() awful.spawn("sh -c 'systemctl reboot'") end }, + { "refresh", awesome.restart }, -- { "quit", function() awesome.quit() end }, - { "poweroff", function() awful.spawn("sh -c 'systemctl poweroff'") end }, - { "stagnate", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl hibernate'") end }, - { "suspend", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl suspend'") end }, - { "logout", function() awful.spawn("sh -c 'pkill -9 -u $USER'") end }, - { "lock", function() awful.spawn.easy_async_with_shell("sh -c 'slock'") end }, - + { "poweroff", function() awful.spawn("sh -c 'systemctl poweroff'") end }, + { "stagnate", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl hibernate'") end }, + { "suspend", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl suspend'") end }, + { "logout", function() awful.spawn("sh -c 'pkill -9 -u $USER'") end }, + { "lock", function() awful.spawn.easy_async_with_shell("sh -c 'slock'") end }, } mymainmenu = awful.menu({ diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index f1f2040..3971a0c 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -78,6 +78,7 @@ myawesomemenu = { { "dunstctl", dunst_menu }, { "config file", editor .. " " .. awesome.conffile }, { "picom config", function() awful.spawn.easy_async_with_shell("xfce4-terminal -x nvim $HOME/.config/picom.conf") end }, + { "set date & time", function() awful.spawn.easy_async_with_shell("~/.local/bin/GUI-dateTime") end }, { "change wallpaper", function() awful.spawn.easy_async_with_shell("sh -c 'nitrogen'") end }, { "xdg_menu refresh", function() @@ -93,7 +94,6 @@ myawesomemenu = { { "suspend", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl suspend'") end }, { "logout", function() awful.spawn("sh -c 'pkill -9 -u $USER'") end }, { "lock", function() awful.spawn.easy_async_with_shell("sh -c 'slock'") end }, - } mymainmenu = awful.menu({ -- cgit v1.2.3