Always try to run discord; update to configs

This commit is contained in:
2022-05-24 09:38:21 -06:00
parent 300c58909d
commit 6a8fced92a
5 changed files with 16 additions and 6 deletions

View File

@ -32,9 +32,14 @@ case $APPLICATION in
pavucontrol ) FACTOR=0.4 YFFSET=200 ;;
esac
LAUNCH_APP=0
xdotool search --class "$CLIENT_CLASS" >/dev/null 2>&1 || {
xdotool search --class "$CLIENT_CLASS" || LAUNCH_APP=1
[[ $CLIENT_CLASS =~ discord ]] && LAUNCH_APP=1
[[ $LAUNCH_APP -eq 1 ]] && {
i3-msg "exec --no-startup-id $APPLICATION;"
sleep .5
}
WINDOW_SIZE=$(\