mirror of
https://gitlab.com/linuxstuff/dotfiles.git
synced 2026-06-21 21:10:53 +02:00
32 lines
888 B
Bash
32 lines
888 B
Bash
#!/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..."
|