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 --- .gitmodules | 3 +++ find-cursor | 1 + i3/.i3/config | 7 ++++++- i3/bin/find-cursor | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 find-cursor create mode 120000 i3/bin/find-cursor diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b59fc82 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "find-cursor"] + path = find-cursor + url = https://github.com/arp242/find-cursor.git diff --git a/find-cursor b/find-cursor new file mode 160000 index 0000000..4a67d02 --- /dev/null +++ b/find-cursor @@ -0,0 +1 @@ +Subproject commit 4a67d023ef204d0c237841610e943cc247447be0 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' diff --git a/i3/bin/find-cursor b/i3/bin/find-cursor new file mode 120000 index 0000000..4ea0e80 --- /dev/null +++ b/i3/bin/find-cursor @@ -0,0 +1 @@ +../../find-cursor/find-cursor \ No newline at end of file -- cgit v1.2.3