From b9c8fd8d0cc97c864966d8f3e500e8b61ae33844 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 13 Sep 2024 14:40:40 +0200 Subject: Add shortcut to locate cursor --- i3/.i3/config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'i3/.i3/config') diff --git a/i3/.i3/config b/i3/.i3/config index 05330c2..c2c6bd0 100644 --- a/i3/.i3/config +++ b/i3/.i3/config @@ -35,15 +35,20 @@ bindsym $mod+Shift+i exec urxvt -name floating-large -e sudo htop for_window [class="URxvt" instance="floating-small"] floating toggle resize set 600 400 bindsym XF86Calculator exec urxvt -name floating-small -e python3 -# Special keys +# Special keys: print screen bindsym Print exec scrot -z '/tmp/%Y-%m-%d-%H%M%S_$wx$h.png' bindsym Shift+Print exec scrot -z -u '/tmp/%Y-%m-%d-%H%M%S_$wx$h.png' bindsym --release Control+Print exec scrot -z -s '/tmp/%Y-%m-%d-%H%M%S_$wx$h.png' +# Special keys: locate cursor +bindsym $mod+c exec find-cursor -c '#ff0000' + +# Special keys: audio bindsym XF86AudioMute exec amixer sset Master toggle && kill -s 10 `pidof i3status` bindsym XF86AudioRaiseVolume exec amixer sset Master 1%+ && kill -s 10 `pidof i3status` bindsym XF86AudioLowerVolume exec amixer sset Master 1%- && kill -s 10 `pidof i3status` +# Special keys: monitor brightness / nightlight bindsym XF86MonBrightnessUp exec bash -c 'echo "$(($(cat /sys/class/backlight/amdgpu_bl0/brightness)+10))" > /sys/class/backlight/amdgpu_bl0/brightness' bindsym XF86MonBrightnessDown exec bash -c 'echo "$(($(cat /sys/class/backlight/amdgpu_bl0/brightness)-10))" > /sys/class/backlight/amdgpu_bl0/brightness' bindsym Shift+XF86MonBrightnessUp exec bash -c 'echo 255 > /sys/class/backlight/amdgpu_bl0/brightness' -- cgit v1.2.3