dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

commit 88b7133cc12c98a2f491ab11045938bec71302d2
parent c047e0c72519b782c7bd966835ba0e7ae2b5a95b
Author: Ashymad <czilukim@o2.pl>
Date:   Sun, 18 Nov 2018 21:15:11 +0100

Add touchpad toggler script

Diffstat:
Ai3/.i3/toggle_touchpad.sh | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/i3/.i3/toggle_touchpad.sh b/i3/.i3/toggle_touchpad.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +en=$(xinput list-props "$1" | grep 'Device Enabled' | tail -c-2) + +if [[ en -eq 0 ]]; then + xinput enable "$1" +else + xinput disable "$1" +fi