Use launch script for #polybar
This commit is contained in:
@ -35,7 +35,7 @@ floating_modifier $mod
|
||||
exec feh --bg-scale ~/var/inbox/ng_photos/`ls -Ar ~/var/inbox/ng_photos | tail -n 1`
|
||||
|
||||
# polybar
|
||||
exec_always --no-startup-id polybar primary
|
||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||
#
|
||||
# panel
|
||||
#bar {
|
||||
|
||||
@ -28,7 +28,7 @@ secondary = #e60053
|
||||
alert = #bd2c40
|
||||
|
||||
[bar/primary]
|
||||
;monitor = ${env:MONITOR:HDMI-1}
|
||||
monitor = ${env:MONITOR:}
|
||||
width = 100%
|
||||
height = 24
|
||||
;offset-x = 1%
|
||||
|
||||
7
polybar/.config/polybar/launch.sh
Executable file
7
polybar/.config/polybar/launch.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
pkill polybar
|
||||
|
||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||||
MONITOR=$m polybar --reload primary &
|
||||
done
|
||||
Reference in New Issue
Block a user