about summary refs log tree commit diff
path: root/configs/laptop/misc/.config/i3/config.device
diff options
context:
space:
mode:
Diffstat (limited to 'configs/laptop/misc/.config/i3/config.device')
-rw-r--r--configs/laptop/misc/.config/i3/config.device18
1 files changed, 18 insertions, 0 deletions
diff --git a/configs/laptop/misc/.config/i3/config.device b/configs/laptop/misc/.config/i3/config.device
new file mode 100644
index 000000000000..376b1c5754be
--- /dev/null
+++ b/configs/laptop/misc/.config/i3/config.device
@@ -0,0 +1,18 @@
+# Laptop-specific configuration
+
+# My laptop has keys for XFree86 signals that my desktop keyboard currently
+# doesn't have.
+
+# volume controls
+bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%   # MBP Volume Up
+bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%   # MBP Volume Down
+bindsym XF86AudioMute        exec --no-startup-id pactl set-sink-mute   @DEFAULT_SINK@ toggle # MBP Mute
+
+# playback controls
+bindsym XF86AudioPrev exec --no-startup-id playerctl previous
+bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
+bindsym XF86AudioNext exec --no-startup-id playerctl next
+
+# screen brightness controls
+bindsym XF86MonBrightnessUp   exec light -A 10
+bindsym XF86MonBrightnessDown exec light -U 10