1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-06-19 04:06:00 +02:00

Added polybar floating config

This commit is contained in:
Simon
2020-12-29 18:29:43 +01:00
parent 7d21d6737d
commit d6fa6e467e
@@ -0,0 +1,31 @@
#!/bin/bash
# Kill hideit instances
ps -ef | grep hideIt | grep -v grep | awk '{print $2}' | xargs kill
# Kill polybar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch
polybar floating -r -l warning &
#setsid ~/.config/polybar/scripts/hideIt.sh --wait --region 0x1080+1920+-10 --name '^Polybar tray window$' &
polybar floating_wm -r -l warning &
polybar floating_sysinfo -r -l warning &
polybar pc_vnc_landscape -r -l warning &
sleep 1
setsid ~/.config/polybar/scripts/hideIt.sh --wait --region 0x1080+1920+-10 --name '^polybar-floating_DP-4$' &
# Toggle sysinfo polybar
(xdo id -m -N Polybar && polybar-msg -p $(ps -ef | grep floating_sysinfo | grep -v grep | awk '{print $2}') cmd hide)&
STATUSFILE="$HOME/.config/polybar/scripts/.sysinfo.active"
rm "$STATUSFILE"
echo "Bar launched..."