edit : polybar for LenovoX1Gen5

This commit is contained in:
Toniiz
2024-08-22 19:44:26 -07:00
parent 3123e7584d
commit 352788af53
3 changed files with 10 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ exec nitrogen --restore
# Network Manager # Network Manager
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
exec --no-startup-id picom & exec --no-startup-id picom
exec_always caffeine exec_always caffeine
exec_always --no-startup-id flashfocus exec_always --no-startup-id flashfocus
# Hide Polybar # Hide Polybar

View File

@@ -14,17 +14,18 @@ primary = #f9f5d7
focused = #d65d0e focused = #d65d0e
urgent = cc241d urgent = cc241d
[bar/barra2] [bar/top-primary]
# monitor = ${env:MONITOR:} # monitor = ${env:MONITOR:}
inherit = bar/barra1 inherit = bar/top
[bar/barra1] [bar/top]
monitor = ${env:MONITOR:} monitor = ${env:MONITOR:}
width = 100% width = 100%
height = 24pt height = 24pt
radius = 6 radius = 6
module-margin-right = 2 module-margin-right = 2
inherit = bar/top
dpi = 110 dpi = 110

View File

@@ -5,7 +5,9 @@ polybar-msg cmd quit
# Otherwise you can use the nuclear option: # Otherwise you can use the nuclear option:
# killall -q polybar # killall -q polybar
for m in $(polybar --list-monitors | cut -d":" -f1); do # Launch bar on each monitor, tray on primary
MONITOR=$m polybar --reload barra1 & polybar --list-monitors | while IFS=$'\n' read line; do
MONITOR=$m polybar --reload barra2 & monitor=$(echo $line | cut -d':' -f1)
primary=$(echo $line | cut -d' ' -f3)
MONITOR=$monitor polybar --reload "top${primary:+"-primary"}" &
done done