aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorBlista Kanjo2023-07-27 03:00:59 -0400
committerBlista Kanjo2023-07-27 03:00:59 -0400
commit26715ad5c2cdcbcad0bc014388ebfaa55cd4104d (patch)
tree1e9fb850c2e74b66a813b9abbb8dad9cd3d9e200 /.config
parentaf6899cd0b77fdb5fc4bd9094a071e094a73f920 (diff)
feat: `toggle-dunst-notifications` & `toggle wibar`
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/rc.lua22
1 files changed, 16 insertions, 6 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 9122cab..262aef2 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -102,9 +102,8 @@ dpms_menu = {
}
dunst_menu = {
+ { "set-paused", function() awful.spawn.easy_async_with_shell("sh -c '~/.local/bin/toggle-dunst-notifications'") end },
{ "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 },
}
-- }}}
@@ -275,13 +274,20 @@ root.buttons(gears.table.join(
-- {{{ key bindings
globalkeys = gears.table.join(
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
- {description = "show shortcuts", group = "awesome"}),
+ { description = "show shortcuts", group = "awesome" }),
awful.key({ "Control", "Mod1" }, "Left", awful.tag.viewprev,
- {description = "view previous", group = "tag"}),
+ { description = "view previous", group = "tag" }),
awful.key({ "Control", "Mod1" }, "Right", awful.tag.viewnext,
- {description = "view next", group = "tag"}),
+ { description = "view next", group = "tag" }),
awful.key({ modkey, }, "Escape", awful.tag.history.restore,
- {description = "go back", group = "tag"}),
+ { description = "go back", group = "tag" }),
+ awful.key({ modkey }, "b",
+ function()
+ myscreen = awful.screen.focused()
+ myscreen.mywibox.visible = not myscreen.mywibox.visible
+ end,
+ { description = "toggle wibar" }
+ ),
-- change window focus in maximized layout
awful.key({ modkey, }, "Tab",
@@ -443,6 +449,10 @@ globalkeys = gears.table.join(
awful.key({ modkey }, "p", function () awful.spawn.easy_async_with_shell("~/.local/bin/choose-xrandr-gui") end,
{description = "choose an xrandr gui for display configuration", group = "launcher"}),
+ -- toggle dunst notifications
+ awful.key({ modkey }, "n", function () awful.spawn.easy_async_with_shell("~/.local/bin/toggle-dunst-notifications") end,
+ {description = "toggle dunst notifications", group = "launcher"}),
+
-- tiled client resizing
-- h,j,k,l binds
awful.key({ modkey }, "l", function () awful.tag.incmwfact( 0.05) end,