diff options
| author | Blista Kanjo | 2023-07-14 03:08:32 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2023-07-14 03:08:32 -0400 |
| commit | 3d1de55b4a7d28699528f46a6cf07b3079b77749 (patch) | |
| tree | 54ff66ee5b97e960786d08e7c5a8b2b710b52e3e /.local | |
| parent | a30cee6889427b040ab8013fbd966d7407e8eb1f (diff) | |
refactor: move `awesome` scripts to `~/.local/bin`
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/awesome-autorun | 36 | ||||
| -rwxr-xr-x | .local/bin/awesome-dpms | 11 | ||||
| -rwxr-xr-x | .local/bin/awesome-keymapper | 6 | ||||
| -rwxr-xr-x | .local/bin/awesome-xinputD | 22 |
4 files changed, 75 insertions, 0 deletions
diff --git a/.local/bin/awesome-autorun b/.local/bin/awesome-autorun new file mode 100755 index 0000000..97d8304 --- /dev/null +++ b/.local/bin/awesome-autorun @@ -0,0 +1,36 @@ +#!/bin/sh + +run () { + if ! pgrep -f "$1" ; + then + "$@"& + fi +} + +run picom -b +run volumeicon +run xfce4-volumed-pulse +run xfce4-clipman +run /usr/lib/geoclue-2.0/demos/agent +run /usr/lib/kdeconnectd +run kdeconnect-indicator +run nm-applet +run system-config-printer-applet +run start-pulseaudio-x11 +run /usr/lib/tracker-miner-fs-3 +run /usr/lib/tracker-miner-rss-3 +run /usr/lib/at-spi-bus-launcher --launch-immediately +run /usr/bin/gnome-keyring-daemon --start --components=pkcs11 +run /usr/bin/gnome-keyring-daemon --start --components=secrets +run /usr/bin/gnome-keyring-daemon --start --components=ssh +run xss-lock slock +run dunst +run ~/.local/bin/awesome-xinputD +run ~/.local/bin/awesome-keymapper +run ~/.local/bin/awesome-dpms +run ibus-daemon -drxR +run /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +run wineserver +run /usr/lib/evolution-addressbook-factory +run /usr/lib/evolution-calendar-factory +run /usr/lib/evolution-source-registry diff --git a/.local/bin/awesome-dpms b/.local/bin/awesome-dpms new file mode 100755 index 0000000..265f6c0 --- /dev/null +++ b/.local/bin/awesome-dpms @@ -0,0 +1,11 @@ +#!/bin/sh + +# Check if xset is available +if command -v xset > /dev/null; then + # Place all DPMS settings that you want + # to run on awesome-wm startup below: + xset -dpms + xset s off off +else + notify-send "Error: DPMS command not found." +fi diff --git a/.local/bin/awesome-keymapper b/.local/bin/awesome-keymapper new file mode 100755 index 0000000..35d44fe --- /dev/null +++ b/.local/bin/awesome-keymapper @@ -0,0 +1,6 @@ +#!/bin/sh + +input-remapper-control --command stop-all &&\ +input-remapper-control --command autoload &&\ +sleep 1 +if [ -f ~/.Xmodmap ]; then xmodmap ~/.Xmodmap; fi diff --git a/.local/bin/awesome-xinputD b/.local/bin/awesome-xinputD new file mode 100755 index 0000000..153a5b4 --- /dev/null +++ b/.local/bin/awesome-xinputD @@ -0,0 +1,22 @@ +#!/bin/sh + +apply_settings() { + sleep 2 + 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 + xinput set-prop pointer:"ELECOM ELECOM TrackBall Mouse" "libinput Accel Speed" 0.300000 + xinput set-prop pointer:"Logitech M705" "libinput Accel Speed" 1.000000 + if [ -f ~/.Xmodmap ]; then xmodmap ~/.Xmodmap; fi +} + +apply_settings + +while true; do + state=$(lsusb) + sleep 2 + + if [ "$state" != "$(lsusb)" ]; then + apply_settings + fi +done |
