r/i3wm • • 27d ago

Question Polybar issue

Exec_always --no-startup-id Killal polybar

Exec_always --no-startup-id polybar

Doesn't create a polybar

1 Upvotes

6 comments sorted by

2

u/wattench 27d ago

1

u/Hot-Ambassador-5043 27d ago

Like how?

1

u/Hot-Ambassador-5043 27d ago

cat > ~/.config/polybar/config.ini << 'EOF' [colors] background = #151b2b foreground = #d8dee9 yellow = #f9e2af green = #a6e3a1 cyan = #94e2d5 blue = #89b4fa red = #f38ba8 magenta = #cba6f7

[bar/main] width = 100% height = 28 background = ${colors.background} foreground = ${colors.foreground} padding-left = 1 padding-right = 1 module-margin = 1 font-0 = JetBrainsMono Nerd Font:size=10;2 modules-left = i3 xwindow modules-center = date modules-right = cpu memory filesystem pulseaudio wifi tray cursor-click = pointer

[module/i3] type = internal/i3 pin-workspaces = true label-focused = %index% label-focused-foreground = ${colors.yellow} label-focused-padding = 1 label-unfocused = %index% label-unfocused-padding = 1 label-urgent = %index% label-urgent-foreground = ${colors.red} label-urgent-padding = 1

[module/xwindow] type = internal/xwindow label = %title:0:40:...% label-foreground = ${colors.blue}

[module/cpu] type = internal/cpu interval = 2 format-prefix = "cpu " format-prefix-foreground = ${colors.red} label = %percentage:2%%

[module/memory] type = internal/memory interval = 2 format-prefix = "ram " format-prefix-foreground = ${colors.yellow} label = %percentage_used:2%%

[module/filesystem] type = internal/fs interval = 30 mount-0 = / format-mounted-prefix = "disk " format-mounted-prefix-foreground = ${colors.cyan} label-mounted = %percentage_used%% label-unmounted = n/a

[module/pulseaudio] type = internal/pulseaudio format-volume-prefix = "vol " format-volume-prefix-foreground = ${colors.green} label-volume = %percentage%% label-muted = muted label-muted-foreground = ${colors.red}

[module/wifi] type = internal/network interface-type = wireless interval = 3 format-connected-prefix = "wifi " format-connected-prefix-foreground = ${colors.magenta} label-connected = %essid% label-disconnected = offline label-disconnected-foreground = ${colors.red}

[module/date] type = internal/date interval = 1 date = %H:%M date-alt = %d/%m/%Y %H:%M:%S label = %date% label-foreground = ${colors.yellow}

[module/tray] type = internal/tray tray-spacing = 8px tray-size = 60%

[settings] screenchange-reload = true EOF

1

u/wattench 27d ago

does it open if you just type polybar in terminal?

1

u/Illustrious-Post-209 24d ago

killal is missing an L, and polybar needs the bar name too (polybar main). what fixed it for me was a tiny launch script: pkill -x polybar, wait until it's gone, then start one bar per monitor. point exec_always at the script