Compare commits

...

2 Commits

Author SHA1 Message Date
Augusto Gunsch 1a67540672 Add wibox toggle shortcut 2022-05-21 20:25:55 -03:00
Augusto Gunsch f76660e892 Update to master 2022-04-24 18:42:29 -03:00
2 changed files with 8 additions and 3 deletions

@ -1 +1 @@
Subproject commit ac49ade9951b591e859a470803e166acfa2b7bf2 Subproject commit 8439ca7930e73e17746a1d6f0610417e8a42865f

View File

@ -197,6 +197,8 @@ end
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution) -- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
screen.connect_signal("property::geometry", set_wallpaper) screen.connect_signal("property::geometry", set_wallpaper)
local mywibox = awful.wibar({ position = "top", screen = s })
awful.screen.connect_for_each_screen(function(s) awful.screen.connect_for_each_screen(function(s)
-- Wallpaper -- Wallpaper
set_wallpaper(s) set_wallpaper(s)
@ -229,7 +231,7 @@ awful.screen.connect_for_each_screen(function(s)
} }
-- Create the wibox -- Create the wibox
s.mywibox = awful.wibar({ position = "top", screen = s }) s.mywibox = mywibox
-- Add widgets to the wibox -- Add widgets to the wibox
s.mywibox:setup { s.mywibox:setup {
@ -423,7 +425,10 @@ globalkeys = gears.table.join(
-- Lock Screen -- Lock Screen
awful.key({ }, "XF86Display", function() awful.spawn(scrlocker) end, awful.key({ }, "XF86Display", function() awful.spawn(scrlocker) end,
{description = "lock the screen", group = "custom"}) {description = "lock the screen", group = "custom"}),
awful.key({ modkey }, "b", function() mywibox.visible = not mywibox.visible end,
{description = "toggle wibox", group = "layout"})
) )
clientkeys = gears.table.join( clientkeys = gears.table.join(