new stuff

This commit is contained in:
David Chen 2019-07-24 23:35:37 +08:00
parent 89f8af3fd2
commit 89974ba846
3 changed files with 24 additions and 2 deletions

View file

@ -43,8 +43,8 @@ floating_modifier $mod
# start a terminal
bindsym $mod+Return exec alacritty
# open ranger
bindsym $mod+Shift+t exec alacritty -e ranger
# open file manager
bindsym $mod+d exec dde-file-manager
# kill focused window
bindsym $mod+Shift+q kill

11
i3/inverse-scroll.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
# Get id of touchpad and the id of the field corresponding to
# natural scrolling
id=`xinput list | grep "Touchpad" | cut -d'=' -f2 | cut -d'[' -f1`
natural_scrolling_id=`xinput list-props $id | \
grep "Natural Scrolling Enabled (" \
| cut -d'(' -f2 | cut -d')' -f1`
# Set the property to true
xinput --set-prop $id $natural_scrolling_id 1

11
i3/tap-to-click.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
# Get id of touchpad and the id of the field corresponding to
# tapping to click
id=`xinput list | grep "Touchpad" | cut -d'=' -f2 | cut -d'[' -f1`
tap_to_click_id=`xinput list-props $id | \
grep "Tapping Enabled (" \
| cut -d'(' -f2 | cut -d')' -f1`
# Set the property to true
xinput --set-prop $id $tap_to_click_id 1