Skip to content

Commit

Permalink
modified: home/yashraj/modules/desktop/wm/awesome/keys.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
MobSenpai committed Jul 7, 2023
1 parent 146ec7f commit c066ba9
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions home/yashraj/modules/desktop/wm/awesome/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,23 @@ keys.desktopbuttons = gears.table.join(
-- awful.button({ }, 4, awful.tag.viewprev),
-- awful.button({ }, 5, awful.tag.viewnext),

-- Side buttons - Minimize and restore minimized client
awful.button({}, 8, function()
if client.focus ~= nil then
client.focus.minimized = true
end
end),
awful.button({}, 9, function()
local c = awful.client.restore()
-- Focus restored client
if c then
client.focus = c
end
end)
-- Side buttons - Control volume
awful.button({}, 8, function() helpers.volume_control(-5) end),
awful.button({}, 9, function() helpers.volume_control(5) end)

-- Side buttons - Minimize and restore minimized client
-- awful.button({}, 8, function()
-- if client.focus ~= nil then
-- client.focus.minimized = true
-- end
-- end),
-- awful.button({}, 9, function()
-- local c = awful.client.restore()
-- -- Focus restored client
-- if c then
-- client.focus = c
-- end
-- end)
)

-- Global bindings
Expand Down

0 comments on commit c066ba9

Please sign in to comment.