Don't save bspwmrc logs and also kill polybar on launch, as well as block autorandr from switching to laptop-only when screen goes off

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2022-06-22 15:14:00 +02:00
parent 90ebbd7e23
commit 5f6abad7db
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283
2 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
xset -q | grep 'On' > /dev/null
if [ $? -eq 0 ]; then
exit 1
else
exit 0
fi

View File

@ -11,6 +11,7 @@ picom --experimental-backends &
$HOME/.fehbg &
/usr/lib/kdeconnectd & disown
pgrep 'nextcloud' || nextcloud & disown
killall polybar
xset -b
@ -30,12 +31,12 @@ killall -q polybar
if [ "${EXT_DISPLAY}" != "" ]; then
bspc monitor ${PRIMARY_DISPLAY} -d 1 2 3 4 5
bspc monitor ${EXT_DISPLAY} -d 6 7 8 9 0
MONITOR=${EXT_DISPLAY} polybar main 2>&1 | tee -a /tmp/polybar.log & disown
MONITOR=${EXT_DISPLAY} polybar main & disown
else
bspc monitor ${PRIMARY_DISPLAY} -d 1 2 3 4 5 6 7 8 9 0
fi
MONITOR=${PRIMARY_DISPLAY} polybar main 2>&1 | tee -a /tmp/polybar.log & disown
MONITOR=${PRIMARY_DISPLAY} polybar main & disown
# Fix for Java applications
wmname LG3D