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:
parent
90ebbd7e23
commit
5f6abad7db
9
.config/autorandr/laptop-only/block
Executable file
9
.config/autorandr/laptop-only/block
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
xset -q | grep 'On' > /dev/null
|
||||||
|
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
@ -11,6 +11,7 @@ picom --experimental-backends &
|
|||||||
$HOME/.fehbg &
|
$HOME/.fehbg &
|
||||||
/usr/lib/kdeconnectd & disown
|
/usr/lib/kdeconnectd & disown
|
||||||
pgrep 'nextcloud' || nextcloud & disown
|
pgrep 'nextcloud' || nextcloud & disown
|
||||||
|
killall polybar
|
||||||
|
|
||||||
xset -b
|
xset -b
|
||||||
|
|
||||||
@ -30,12 +31,12 @@ killall -q polybar
|
|||||||
if [ "${EXT_DISPLAY}" != "" ]; then
|
if [ "${EXT_DISPLAY}" != "" ]; then
|
||||||
bspc monitor ${PRIMARY_DISPLAY} -d 1 2 3 4 5
|
bspc monitor ${PRIMARY_DISPLAY} -d 1 2 3 4 5
|
||||||
bspc monitor ${EXT_DISPLAY} -d 6 7 8 9 0
|
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
|
else
|
||||||
bspc monitor ${PRIMARY_DISPLAY} -d 1 2 3 4 5 6 7 8 9 0
|
bspc monitor ${PRIMARY_DISPLAY} -d 1 2 3 4 5 6 7 8 9 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MONITOR=${PRIMARY_DISPLAY} polybar main 2>&1 | tee -a /tmp/polybar.log & disown
|
MONITOR=${PRIMARY_DISPLAY} polybar main & disown
|
||||||
|
|
||||||
# Fix for Java applications
|
# Fix for Java applications
|
||||||
wmname LG3D
|
wmname LG3D
|
||||||
|
Loading…
Reference in New Issue
Block a user