summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oxwm/.config/oxwm/config.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/oxwm/.config/oxwm/config.lua b/oxwm/.config/oxwm/config.lua
index eda0688..7b729f7 100644
--- a/oxwm/.config/oxwm/config.lua
+++ b/oxwm/.config/oxwm/config.lua
@@ -177,6 +177,12 @@ oxwm.bar.set_scheme_selected(colors.cyan, colors.bg, colors.purple)
-- A list of available keysyms can be found in the X11 keysym definitions.
-- Common keys: Return, Space, Tab, Escape, Backspace, Delete, Left, Right, Up, Down
+-- Audio controls
+
+oxwm.key.bind({ }, "XF86AudioMute", oxwm.spawn({ "sh", "-c", "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" }))
+oxwm.key.bind({ }, "XF86AudioRaiseVolume", oxwm.spawn({ "sh", "-c", "wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+" }))
+oxwm.key.bind({ }, "XF86AudioLowerVolume", oxwm.spawn({ "sh", "-c", "wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-" }))
+
-- Basic window management
oxwm.key.bind({ modkey }, "Return", oxwm.spawn_terminal())