From: Armaan Bhojwani Date: Sun, 7 Mar 2021 17:55:36 +0000 (-0500) Subject: autostart, kbd-swap: kill other instances first X-Git-Tag: v0.0.1~24 X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=19ec285cc7f9f907234081dcaf79708fb6bfe831 autostart, kbd-swap: kill other instances first --- diff --git a/autostart b/autostart index 575864e..8cdc59e 100755 --- a/autostart +++ b/autostart @@ -1,9 +1,14 @@ #!/usr/bin/env sh -# xsetroot -solid "#282828" -feh --bg-scale "/home/armaa/.local/share/wallpaper.png" -batsignal -b +wal="/home/armaa/.local/share/wallpaper.png" +if [ -f "$wal" ]; then + feh --bg-scale "$wal" +else + hsetroot -solid "#282828" +fi + /home/armaa/Code/scripts/keyboard-swap -redshift -l 42.2:-71.3 -t 6500:2500 & -dunst & -picom & +pkill batsignal ; batsignal -b +pkill redshift ; redshift -l 42.2:-71.3 -t 6500:2500 & +pkill dunst ; dunst & +pkill picom ; picom -b diff --git a/keyboard-swap b/keyboard-swap index ef4a75f..6e77d16 100755 --- a/keyboard-swap +++ b/keyboard-swap @@ -3,4 +3,4 @@ # control and tapping it as escape setxkbmap -option "ctrl:swapcaps" -xcape +pkill xcape && xcape