From edbfc037c19ea6b958d432bc4db4955a27a51104 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Mon, 18 Jan 2021 15:24:51 +0100 Subject: [PATCH] Update keybindings in sxhkdrc config --- .config/sxhkd/sxhkdrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 415b10d..12a78d1 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -66,10 +66,10 @@ ctrl + XF86Audio{Next,Prev} XF86AudioStop playerctl stop && pkill -RTMIN+2 dwmblocks -ctrl + alt + {Left,Up,Down,Right} +ctrl + alt + {Left,Up,Down,period} rotscreen {left,normal,inverted,right} button6 - xte "keydown Super_L" "keydown comma" "keyup Super_L" "keyup comma" + if [ `ps x | grep $(xdotool getactivewindow getwindowpid) | awk 'NR==1 \{print $5\}'` = "/usr/lib/chromium/chromium" ]; then if [ `xdotool getmouselocation | awk '\{print $2\}' | sed 's/y://g'` -gt 18 ]; then xte "keydown Control_L" "keydown Shift_L" "keydown Tab" "keyup Control_L" "keyup Shift_L" "keyup Tab"; else xte "keydown Super_L" "keydown comma" "keyup Super_L" "keyup comma"; fi; else xte "keydown Super_L" "keydown comma" "keyup Super_L" "keyup comma"; fi button7 - xte "keydown Super_L" "keydown period" "keyup Super_L" "keyup period" + if [ `ps x | grep $(xdotool getactivewindow getwindowpid) | awk 'NR==1 \{print $5\}'` = "/usr/lib/chromium/chromium" ]; then if [ `xdotool getmouselocation | awk '\{print $2\}' | sed 's/y://g'` -gt 18 ]; then xte "keydown Control_L" "keydown Tab" "keyup Control_L" "keyup Tab"; else xte "keydown Super_L" "keydown period" "keyup Super_L" "keyup period"; fi; else xte "keydown Super_L" "keydown period" "keyup Super_L" "keyup period"; fi