diff options
Diffstat (limited to 'i3')
-rw-r--r-- | i3/config | 17 | ||||
-rwxr-xr-x | i3/toggle_mouse.sh | 8 |
2 files changed, 21 insertions, 4 deletions
@@ -23,18 +23,27 @@ bindsym $mod+Shift+q kill # launcher bindsym $mod+d exec rofi -show run -hide-scrollbar -separator-style "solid" -# i3lock -bindsym $mod+l exec ~/.config/i3/lock.sh -exec xautolock -time 15 -locker '~/.config/i3/lock.sh' - # reload the configuration file bindsym $mod+Shift+c reload + # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart + # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" +# --- custom shortcuts ---------------------------------------------------------------------------- + + +# i3lock +bindsym $mod+l exec ~/.config/i3/lock.sh +exec xautolock -time 15 -locker '~/.config/i3/lock.sh' + +# touchpad toggle +bindsym $mod+t exec ~/.config/i3/toggle_mouse.sh + + # --- navigation ---------------------------------------------------------------------------------- diff --git a/i3/toggle_mouse.sh b/i3/toggle_mouse.sh new file mode 100755 index 0000000..9343810 --- /dev/null +++ b/i3/toggle_mouse.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if [ -z "$(synclient | grep TouchpadOff | grep 1)" ]; then + synclient TouchpadOff=1 + unclutter -idle 0 & +else + synclient TouchpadOff=0 + unclutter -idle 5 & +fi |