edit : polybar for LenovoX1Gen5
This commit is contained in:
@@ -21,7 +21,7 @@ exec nitrogen --restore
|
||||
|
||||
# Network Manager
|
||||
exec --no-startup-id nm-applet
|
||||
exec --no-startup-id picom &
|
||||
exec --no-startup-id picom
|
||||
exec_always caffeine
|
||||
exec_always --no-startup-id flashfocus
|
||||
# Hide Polybar
|
||||
|
||||
@@ -14,17 +14,18 @@ primary = #f9f5d7
|
||||
focused = #d65d0e
|
||||
urgent = cc241d
|
||||
|
||||
[bar/barra2]
|
||||
[bar/top-primary]
|
||||
# monitor = ${env:MONITOR:}
|
||||
inherit = bar/barra1
|
||||
inherit = bar/top
|
||||
|
||||
|
||||
[bar/barra1]
|
||||
[bar/top]
|
||||
monitor = ${env:MONITOR:}
|
||||
width = 100%
|
||||
height = 24pt
|
||||
radius = 6
|
||||
module-margin-right = 2
|
||||
inherit = bar/top
|
||||
|
||||
dpi = 110
|
||||
|
||||
|
||||
@@ -5,7 +5,9 @@ polybar-msg cmd quit
|
||||
# Otherwise you can use the nuclear option:
|
||||
# killall -q polybar
|
||||
|
||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||||
MONITOR=$m polybar --reload barra1 &
|
||||
MONITOR=$m polybar --reload barra2 &
|
||||
# Launch bar on each monitor, tray on primary
|
||||
polybar --list-monitors | while IFS=$'\n' read line; do
|
||||
monitor=$(echo $line | cut -d':' -f1)
|
||||
primary=$(echo $line | cut -d' ' -f3)
|
||||
MONITOR=$monitor polybar --reload "top${primary:+"-primary"}" &
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user