[ADD][I3] Touchpad toggle & display settings keys
This commit is contained in:
parent
b158a8a06e
commit
b03a14ba63
|
@ -209,6 +209,10 @@ bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
|
||||||
bindsym XF86AudioRaiseVolume exec amixer -q -D pulse sset Master 5%+ && pkill -RTMIN+10 i3blocks
|
bindsym XF86AudioRaiseVolume exec amixer -q -D pulse sset Master 5%+ && pkill -RTMIN+10 i3blocks
|
||||||
bindsym XF86AudioLowerVolume exec amixer -q -D pulse sset Master 5%- && pkill -RTMIN+10 i3blocks
|
bindsym XF86AudioLowerVolume exec amixer -q -D pulse sset Master 5%- && pkill -RTMIN+10 i3blocks
|
||||||
bindsym XF86AudioMute exec amixer -q -D pulse sset Master toggle && pkill -RTMIN+10 i3blocks
|
bindsym XF86AudioMute exec amixer -q -D pulse sset Master toggle && pkill -RTMIN+10 i3blocks
|
||||||
|
# Bind keyboard settings key to toggle touchpad
|
||||||
|
bindsym XF86Tools exec toggle_touchpad
|
||||||
|
# Bind display control to launch arandr
|
||||||
|
bindsym XF86Display exec arandr
|
||||||
|
|
||||||
# Bind sreen brightness controls
|
# Bind sreen brightness controls
|
||||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
|
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
|
||||||
|
|
11
scripts/toggle_touchpad
Executable file
11
scripts/toggle_touchpad
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
# Device id according to xinput list
|
||||||
|
device=11
|
||||||
|
state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$")
|
||||||
|
|
||||||
|
if [ "$state" == "1" ];then
|
||||||
|
xinput --disable "$device"
|
||||||
|
else
|
||||||
|
xinput --enable "$device"
|
||||||
|
fi
|
Loading…
Reference in a new issue