aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/sway/config6
-rwxr-xr-xbin/startsway4
2 files changed, 8 insertions, 2 deletions
diff --git a/.config/sway/config b/.config/sway/config
index 708db00..89b9c2a 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -53,6 +53,12 @@ output * bg ~/.config/sway/background.png fill
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
+input type:touchpad {
+ dwt enabled
+ tap enabled
+ tap_button_map lrm
+}
+
### Key bindings
#
# Basics:
diff --git a/bin/startsway b/bin/startsway
index 2f3c5ee..0809fb8 100755
--- a/bin/startsway
+++ b/bin/startsway
@@ -17,7 +17,7 @@ export RUST_BACKTRACE=full
mkdir -p "$HOME/.log"
config="$HOME/.config/sway/config"
-if [ -f "$HOME/.config/sway/$(hostname)" ]; then
- config="$HOME/.config/sway/$(hostname)"
+if [ -f "$HOME/.config/sway/${HOSTNAME}" ]; then
+ config="$HOME/.config/sway/${HOSTNAME}"
fi
/usr/bin/sway -c "$config" > "$HOME/.log/sway.log" 2>&1