From ab21758440fd9825f6dc665b237ff067e6455856 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Fri, 4 Nov 2022 17:43:14 -0400 Subject: fix: workaround for input-remapper unreliability when switching between devices --- .config/awesome/autorun.sh | 1 - .config/awesome/keymapper.sh | 3 --- .config/awesome/xinput-daemon.sh | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) delete mode 100755 .config/awesome/keymapper.sh (limited to '.config') diff --git a/.config/awesome/autorun.sh b/.config/awesome/autorun.sh index f9ea291..a04311e 100755 --- a/.config/awesome/autorun.sh +++ b/.config/awesome/autorun.sh @@ -35,7 +35,6 @@ run /usr/bin/gnome-keyring-daemon --start --components=secrets run /usr/bin/gnome-keyring-daemon --start --components=ssh run xfce4-power-manager run dunst -run ~/.config/awesome/keymapper.sh run ~/.config/awesome/xinput-daemon.sh run ibus-daemon -drxR run /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 diff --git a/.config/awesome/keymapper.sh b/.config/awesome/keymapper.sh deleted file mode 100755 index 877907d..0000000 --- a/.config/awesome/keymapper.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -sleep 1 && input-remapper-control --command stop-all && sleep 1 && input-remapper-control --command autoload diff --git a/.config/awesome/xinput-daemon.sh b/.config/awesome/xinput-daemon.sh index 959ab72..dfb3544 100755 --- a/.config/awesome/xinput-daemon.sh +++ b/.config/awesome/xinput-daemon.sh @@ -4,6 +4,7 @@ apply_settings () { sleep 2 + input-remapper-control --command stop-all && input-remapper-control --command autoload xinput set-prop pointer:"Logitech USB Trackball" "libinput Natural Scrolling Enabled" 1 xinput set-prop pointer:"Logitech USB Trackball" "libinput Accel Speed" 1.000000 xinput set-prop pointer:"SteelSeries SteelSeries Rival 310 eSports Mouse" "libinput Accel Speed" 0.300000 -- cgit v1.2.3