diff --git a/.config/i3pystatus/config.py b/.config/i3pystatus/config.py index b0e9031..0894240 100644 --- a/.config/i3pystatus/config.py +++ b/.config/i3pystatus/config.py @@ -87,6 +87,13 @@ status.register("shell", interval=1, on_leftclick="xinput enable 'ELAN Touchscreen'", on_rightclick="xinput disable 'ELAN Touchscreen'") +status.register("shell", + format="{output}", + hints = {"markup": "pango"}, + command="/home/kunsi/.config/i3pystatus/trackpad.sh", + interval=1, + on_leftclick="xinput enable 'SynPS/2 Synaptics TouchPad'", + on_rightclick="xinput disable 'SynPS/2 Synaptics TouchPad'") status.register("network", interface="wlp4s0", diff --git a/.config/i3pystatus/trackpad.sh b/.config/i3pystatus/trackpad.sh new file mode 100755 index 0000000..35e622d --- /dev/null +++ b/.config/i3pystatus/trackpad.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +OUT=$(xinput list-props 'SynPS/2 Synaptics TouchPad' | awk '/^\tDevice Enabled \([0-9]+\):\t[01]/ {print $NF}') + +echo -n 'Trackpad'