xmonad: remove touchtoggle

This commit is contained in:
Timothy DeHerrera 2020-07-30 22:49:26 -06:00
parent 2369f43398
commit 6ad7b4eeda
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
2 changed files with 1 additions and 16 deletions

View file

@ -1,12 +0,0 @@
#!/usr/bin/env zsh
touchpad_name=$(libinput list-devices | grep -B 5 "pointer gesture" | awk '/Device/ {for (i=2; i<NF; i++) printf $i " "; print $NF}')
[[ $touchpad_name == "" ]] && exit
touchpad_status=$(xinput list-props "$touchpad_name" | awk '/Device Enabled/ {print $4}')
if [[ $touchpad_status == "0" ]]; then
xinput --enable "$touchpad_name"
else
xinput --disable "$touchpad_name"
fi

View file

@ -9,14 +9,11 @@ let
stoggle = writeScript "xmonad-stoggle" (readFile ./scripts/stoggle); stoggle = writeScript "xmonad-stoggle" (readFile ./scripts/stoggle);
touchtoggle =
writeScript "xmonad-touchtoggle" (readFile ./scripts/touchtoggle);
volnoti = import ../misc/volnoti.nix { inherit pkgs; }; volnoti = import ../misc/volnoti.nix { inherit pkgs; };
in in
'' ''
${readFile ./_xmonad.hs} ${readFile ./_xmonad.hs}
${import ./_xmonad.nix { ${import ./_xmonad.nix {
inherit screenshots touchtoggle autostart stoggle pkgs volnoti; inherit screenshots autostart stoggle pkgs volnoti;
}} }}
'' ''