aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome
diff options
context:
space:
mode:
authorBlista Kanjo2023-02-05 15:30:12 -0500
committerBlista Kanjo2023-02-05 15:30:12 -0500
commita3a103407eae4fc46e1151d382be2ee23308b3fc (patch)
treee5baafc656ae2ee5d3ad19e3ed26e2837d2371f2 /.config/awesome
parente1e36e1eb94d9ee9536401a158147cc2c01ac28f (diff)
feat: placing all dunstctl commands in a new submenu
Diffstat (limited to '.config/awesome')
-rw-r--r--.config/awesome/rc.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index f86796a..707f0bd 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -97,18 +97,22 @@ dpms_menu = {
{ "21600 # 6h", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 21600") end },
}
+dunst_menu = {
+ { "history-pop", function() awful.spawn.easy_async_with_shell("dunstctl history-pop") end },
+ { "set-paused true", function() awful.spawn.easy_async_with_shell("dunstctl set-paused true") end },
+ { "set-paused false", function() awful.spawn.easy_async_with_shell("dunstctl set-paused false") end },
+}
+
myawesomemenu = {
{ "show hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
-- { "manual", terminal .. " -e man awesome" },
{ "xset s", s_menu },
{ "xset dpms", dpms_menu },
+ { "dunstctl", dunst_menu },
{ "config file", editor .. " " .. awesome.conffile },
{ "picom config", function() awful.spawn.easy_async_with_shell("sh -c 'gvim $HOME/.config/picom.conf'") 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 },
- { "dunst_hist", function() awful.spawn.easy_async_with_shell("dunstctl history-pop") end },
- { "dunst=0", function() awful.spawn.easy_async_with_shell("dunstctl set-paused true") end },
- { "dunst=1", function() awful.spawn.easy_async_with_shell("dunstctl set-paused false") end },
{ "refresh", awesome.restart },
{ "reboot", function() awful.spawn("sh -c 'lxsudo reboot now'") end },
-- { "quit", function() awesome.quit() end },