Skip to content

Commit

Permalink
chore: keybinds update
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Jul 5, 2022
1 parent 0543860 commit 1e66dc1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions config/awesome/configuration/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,29 @@ awful.keyboard.append_global_keybindings({

--- Brightness Control
awful.key({}, "XF86MonBrightnessUp", function()
awful.spawn("brightnessctl set 5%+ -q")
awful.spawn("brightnessctl set 5%+ -q", false)
awesome.emit_signal("widget::brightness")
awesome.emit_signal("module::brightness_osd:show", true)
end, { description = "increase brightness", group = "hotkeys" }),
awful.key({}, "XF86MonBrightnessDown", function()
awful.spawn("brightnessctl set 5%- -q")
awful.spawn("brightnessctl set 5%- -q", false)
awesome.emit_signal("widget::brightness")
awesome.emit_signal("module::brightness_osd:show", true)
end, { description = "decrease brightness", group = "hotkeys" }),

--- Volume control
awful.key({}, "XF86AudioRaiseVolume", function()
awful.spawn("pamixer -i 5")
awful.spawn("pamixer -i 5", false)
awesome.emit_signal("widget::volume")
awesome.emit_signal("module::volume_osd:show", true)
end, { description = "increase volume", group = "hotkeys" }),
awful.key({}, "XF86AudioLowerVolume", function()
awful.spawn("pamixer -d 5")
awful.spawn("pamixer -d 5", false)
awesome.emit_signal("widget::volume")
awesome.emit_signal("module::volume_osd:show", true)
end, { description = "decrease volume", group = "hotkeys" }),
awful.key({}, "XF86AudioMute", function()
awful.spawn("pamixer -t")
awful.spawn("pamixer -t", false)
end, { description = "mute volume", group = "hotkeys" }),

--- Music
Expand Down

0 comments on commit 1e66dc1

Please sign in to comment.