summaryrefslogtreecommitdiffstats
path: root/jeschli
diff options
context:
space:
mode:
authorJeschli <jeschli@gmail.com>2020-04-14 20:46:47 +0200
committerJeschli <jeschli@gmail.com>2020-04-14 20:46:47 +0200
commite03a28a8a21313e2082bafc91da0e0a5066a4104 (patch)
tree0d2b2156e51fe856d7438db722f42bc41b34e1ef /jeschli
parent17630336d47adc801ab38bf7184d5ad04bdb5306 (diff)
j reagenzglas: touchpad dis/enable by F1/F2.
Diffstat (limited to 'jeschli')
-rw-r--r--jeschli/1systems/reagenzglas/i3-configuration.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/jeschli/1systems/reagenzglas/i3-configuration.nix b/jeschli/1systems/reagenzglas/i3-configuration.nix
index 576553e..88f6342 100644
--- a/jeschli/1systems/reagenzglas/i3-configuration.nix
+++ b/jeschli/1systems/reagenzglas/i3-configuration.nix
@@ -34,6 +34,9 @@ let
bindsym $mod+x exec ${pkgs.rofi}/bin/rofi -modi window -show window -auto-select
+ bindsym $mod+F1 exec xinput --list | grep Touchpad | sed 's/.*id=\([0-9][0-9]\).*/\1/' | xargs xinput disable
+ bindsym $mod+F2 exec xinput --list | grep Touchpad | sed 's/.*id=\([0-9][0-9]\).*/\1/' | xargs xinput enable
+
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.