modify i3 and polybar config, multiple display now shows proper workspace names

This commit is contained in:
Toniiz
2024-08-19 13:44:17 -07:00
parent 47e14b77e2
commit 20773ba2ff
5 changed files with 299 additions and 18 deletions

View File

@@ -8,10 +8,15 @@ alert = #A54242
disabled = #707880
[bar/barra1]
monitor = ${env:MONITOR:}
width = 100%
height = 24pt
radius = 6
[bar/barra2]
# monitor = ${env:MONITOR:}
inherit = bar/barra1
dpi = 110
background = ${colors.background}
@@ -61,6 +66,7 @@ index-sort = true
enable-click = true
fuzzy-match = true
pin-workspaces = true
strip-wsnumbers = false
ws-icon-0 = 1;1
ws-icon-1 = 2;2
@@ -78,20 +84,20 @@ label-mode = %mode%
label-mode-padding = 2
label-mode-foreground = ${colors.primary}
label-focused = %icon%
label-focused = %name%
label-focused-font = 5
label-focused-foreground = ${colors.primary}
label-focused-padding = 1
label-unfocused = %icon%
label-unfocused = %name%
label-unfocused-font = 5
label-unfocused-foreground = ${colors.white}
label-unfocused-padding = 1
label-visible = %icon%
label-visible = %name%
label-visible-padding = 1
label-urgent = %icon%
label-urgent = %name%
label-urgent-font = 10
label-urgent-foreground = ${colors.red}
label-urgent-padding = 1

View File

@@ -1,14 +1,5 @@
#!/usr/bin/env bash
# Terminate already running bar instances
# If all your bars have ipc enabled, you can use
polybar-msg cmd quit
# Otherwise you can use the nuclear option:
# killall -q polybar
# Launch bar1 and bar2
echo "---" | tee -a /tmp/polybar1.log # /tmp/polybar2.log
polybar barra1 2>&1 | tee -a /tmp/polybar1.log & disown
# polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown
echo "Bars launched..."
for m in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$m polybar --reload barra1 &
MONITOR=$m polybar --reload barra2 &
done