xmonad: remove touchtoggle
This commit is contained in:
parent
2369f43398
commit
6ad7b4eeda
2 changed files with 1 additions and 16 deletions
|
@ -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
|
|
@ -9,14 +9,11 @@ let
|
|||
|
||||
stoggle = writeScript "xmonad-stoggle" (readFile ./scripts/stoggle);
|
||||
|
||||
touchtoggle =
|
||||
writeScript "xmonad-touchtoggle" (readFile ./scripts/touchtoggle);
|
||||
|
||||
volnoti = import ../misc/volnoti.nix { inherit pkgs; };
|
||||
in
|
||||
''
|
||||
${readFile ./_xmonad.hs}
|
||||
${import ./_xmonad.nix {
|
||||
inherit screenshots touchtoggle autostart stoggle pkgs volnoti;
|
||||
inherit screenshots autostart stoggle pkgs volnoti;
|
||||
}}
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue