diff --git a/configs/i3wm_g/Lenovox1Gen5/config b/configs/i3wm_g/Lenovox1Gen5/config index 4278e1e..f76e859 100644 --- a/configs/i3wm_g/Lenovox1Gen5/config +++ b/configs/i3wm_g/Lenovox1Gen5/config @@ -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 diff --git a/configs/polybar_g/Lenovox1Gen5/config.ini b/configs/polybar_g/Lenovox1Gen5/config.ini index 45cf21f..bf630bb 100644 --- a/configs/polybar_g/Lenovox1Gen5/config.ini +++ b/configs/polybar_g/Lenovox1Gen5/config.ini @@ -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 diff --git a/configs/polybar_g/Lenovox1Gen5/launch.sh b/configs/polybar_g/Lenovox1Gen5/launch.sh index 51779b3..a185826 100755 --- a/configs/polybar_g/Lenovox1Gen5/launch.sh +++ b/configs/polybar_g/Lenovox1Gen5/launch.sh @@ -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