diff --git a/i3/config b/i3/config index a7e47bd..572d590 100644 --- a/i3/config +++ b/i3/config @@ -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 diff --git a/i3/inverse-scroll.sh b/i3/inverse-scroll.sh new file mode 100755 index 0000000..b629432 --- /dev/null +++ b/i3/inverse-scroll.sh @@ -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 diff --git a/i3/tap-to-click.sh b/i3/tap-to-click.sh new file mode 100755 index 0000000..a9125fe --- /dev/null +++ b/i3/tap-to-click.sh @@ -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