mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-06-30 17:22:02 +00:00
Polybar systemd service
This commit is contained in:
@ -58,3 +58,4 @@ sh ~/.config/scripts/audio/es8start.sh
|
||||
sh ~/.config/scripts/audio/es9start.sh
|
||||
|
||||
launchi3
|
||||
systemctl --user restart polybar
|
||||
|
13
scripts/desktop/polybar-start.sh
Executable file
13
scripts/desktop/polybar-start.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Stop all polybar instances
|
||||
killall -q polybar
|
||||
while pgrep -x polybar >/dev/null; do sleep 0.1; done
|
||||
|
||||
for monitor in $(xrandr -q | grep -e "\sconnected\s" | cut -d' ' -f1); do
|
||||
if [ $monitor == 'DVI-D-0' ] || [ $monitor == 'LVDS-1' ]; then
|
||||
MONITOR=$monitor polybar aqua &
|
||||
fi
|
||||
done
|
||||
|
||||
|
Reference in New Issue
Block a user