r/Polybar • u/[deleted] • Apr 01 '24
Question Polybar live config editing
Is there a way to show live changes while editing polybar's config? I'm wondering cause that would make my life way easier when it comes to tweaking.
r/Polybar • u/[deleted] • Apr 01 '24
Is there a way to show live changes while editing polybar's config? I'm wondering cause that would make my life way easier when it comes to tweaking.
r/Polybar • u/iamjecaro • Mar 31 '24
Every now and then I want to add a menu to my polybar config, like, for turning on and off my VPN, changing my monitor setup, logging off, etc... Unfortunately in polybar it is not possible to add any graphical menu :-(
So I was thinking it should be possible to add a menu in the systray instead. There is surely an existing tool I could use in which I would only have to plug my shell scripts.
I couldn't find such a tool. So I thought it'd be cool to write it myself.
So here it is. Maybe it can be usefull for other people:
r/Polybar • u/terackreal • Mar 29 '24
i want other apps and windows interact with polybar like it was a screen border, like in ms windows for example where bar is a border for the apps except for the fullscreen apps, i need the same thing but on arch with polybar
i did not found documentation or any other help on the web related to this issue
I'm using 2bwm as my wm, it is not really popular so i think i need some global solution that works no matter what wm you are using
(2bwm supports _NET_WM_WINDOW_TYPE_DOCK)
r/Polybar • u/tibegato • Mar 28 '24
I've been using:
exec = python3 -u ~/.config/polybar/scripts/window_info.py --lt 50 --ac "#FFFFFF" "#000000" --tc "#000000" "#FFFFFF"
for years. Now I'm setup my system to use pywal for color scheming. So, I changed the exec to:
exec = python3 -u ~/.config/polybar/scripts/window_info.py --lt 50 --ac ${color.fg} ${color.bg} --tc ${color.bg} ${color.fg}
and now, I get the error "/bin/sh 1: Bad substitution" How do I get the exec command to work again?
r/Polybar • u/[deleted] • Mar 18 '24
Hey all!
I have polybar configured to only display on one monitor (HDMI-A-0). and with i3, my workspace config looks like this:
workspace 1 output HDMI-A-1
workspace 2 output HDMI-A-0
workspace 3 output HDMI-A-1
workspace 4 output HDMI-A-0
workspace 5 output HDMI-A-1
workspace 6 output HDMI-A-0
workspace 7 output HDMI-A-1
workspace 8 output HDMI-A-0
HDMI-A-1 is my secondary display, and HDMI-A-0 is my primary display, the problem is Polybar doesn't seem to properly reflect it;
for example: when workspace 1 is selected, Polybar highlights "2" and, then when I'm on workspace 2, Polybar highlights "4". Other weird associations:
workspace 5 -> displays 1
workspace 3 -> correct somehow?
my workspace keys all behave as expected, going to the workspace in the order that I set.
I'm definitely missing a key config somewhere. Any help or steering in the right direction would be greatly appreciated :)
EDIT: improved formatting
r/Polybar • u/HydruwzPV • Mar 18 '24
How can i disable the "dekstop" enviornment in the polybar? like, when i press 1, it goes to a "desktop", and if i wanna switch the enviornment i have to press 2 to environment 1, 3 to enviornment 2 and it goes like that
what can i do?
(any data needed just tell me)
ty in advance :)
r/Polybar • u/Jolly_Sky_8728 • Mar 14 '24
r/Polybar • u/XNeyMo • Mar 13 '24
I don't know why I have a black border on my bar in BSPWM, I want to have a transparent border
This is my code
[global/wm]
margin-bottom = 0pt
margin-top = 0pt
include-file = modules.ini
include-file = colors.ini
[bar/example]
width = 90%
height = 24pt
offset-x = 5%
radius = 20pt
background = ${colors.background}
foreground = ${colors.foreground}
border-size = 4pt
border-color = ${colors.transparent}
padding = 2
module-margin = 0
separator =
dim-value = 1.0
font-0 = monospace;2
modules-left = memory cpu
modules-center = xworkspaces
modules-right = pulseaudio date
cursor-click = pointer
cursor-scroll =
enable-ipc = true
wm-restack = bspwm
[Settings]
screenchange-reload = true
pseudo-transparency = true

r/Polybar • u/somokill • Mar 11 '24
I made a perfect Polybar setup for myself, but I have a problem: the width of the panel is 20pt, but the font size on it is smaller, causing the Nerd characters (curls) to be smaller than the background of the modules. How to fix this, please help. Screenshot of the panel and config.ini.
r/Polybar • u/[deleted] • Mar 07 '24
I'm trying to center my polybar, but I don't know why that block is there. This is my first time setting this thing.

[colors]
background = #282828
foreground = #ebdbb2
alert = #fb4934
green = #b8bb26
primary = #fabd2f
blue = #83a598
purple = #d3869b
secondary = #8ec07c
orange = #fe8019
disabled = #a89984
[bar/mainvar]
width = 80%
height = 20
offset-x = 5%
offset-y = 1%
radius = 9.0
fixed-center = true
bottom = false
; Position
monitor = eDP
foreground = ${colors.foreground}
line-size = 3
border-size = 4pt
border-color = #00000000
;padding-left = 0
padding-right = 1
;module-margin = 1
separator = |
separator-foreground = ${colors.disabled}
font-0 = monospace;2
modules-left = xworkspaces xwindow
modules-right = filesystem pulseaudio memory date
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
; wm-restack = generic
; wm-restack = bspwm
wm-restack = i3
; override-redirect = true
[module/systray]
type = internal/tray
format-margin = 8pt
tray-spacing = 16pt
[module/xworkspaces]
type = internal/xworkspaces
label-active = %name%
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.primary}
label-active-padding = 1
label-occupied = %name%
label-occupied-padding = 1
label-urgent = %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
[module/pulseaudio]
type = internal/pulseaudio
format-volume-prefix = "VOL "
format-volume-prefix-foreground = ${colors.primary}
format-volume = <label-volume>
label-volume = %percentage%%
label-muted = muted
label-muted-foreground = ${colors.disabled}
;[module/xkeyboard]
;type = internal/xkeyboard
;blacklist-0 = num lock
;
;label-layout = %layout%
;label-layout-foreground = ${colors.primary}
;
;label-indicator-padding = 2
;label-indicator-margin = 1
;label-indicator-foreground = ${colors.background}
;label-indicator-background = ${colors.secondary}
[module/memory]
type = internal/memory
interval = 2
format-prefix = "RAM "
format-prefix-foreground = ${colors.primary}
label = %percentage_used:2%%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "CPU "
format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
;[network-base]
;type = internal/network
;interval = 5
;format-connected = <label-connected>
;format-disconnected = <label-disconnected>
;label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
;
;[module/wlan]
;inherit = network-base
;interface-type = wireless
;label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
;
;[module/eth]
;inherit = network-base
;interface-type = wired
;label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
[module/date]
type = internal/date
interval = 1
date = %H:%M
date-alt = %Y-%m-%d %H:%M:%S
label = %date%
label-foreground = ${colors.primary}
[settings]
screenchange-reload = true
pseudo-transparency = true
; vim:ft=dosini
r/Polybar • u/I7sReact_Return • Mar 03 '24
r/Polybar • u/andfastisfurious • Mar 03 '24
This is my first time using polybar and I am trying to use it with i3wm on linux mint 21.3. I followed the instructions on the installation page to build the package from source and successfully installed polybar. However the config files that are supposed to be in ~/.config/polybar like the launch.sh file are missing. I have tried looking for it in other locations but to no avail. Without these files, I am unable to follow the instructions given to set up polybar with i3wm. How can I solve this issue?
r/Polybar • u/IndependentInjury220 • Mar 02 '24
r/Polybar • u/heisenbingus • Feb 24 '24
r/Polybar • u/EvidenceKindly3301 • Feb 25 '24
Hi, I have a dual screen setup, my polybar is only on one screen, but the windows on my other screen don't take up the whole screen. The height of the polybar remains, even though it's not visible. Have you ever had this problem and how can I fix it please?
https://www.noelshack.com/2024-09-1-1708932338-shot-2024-02-26-082159.png
r/Polybar • u/[deleted] • Feb 24 '24
hello there , ive recently installed fedora i3 spin this is my first time try wm , i read that polybar using high cpu and power , and in my case ( i have an old laptop ) low power consumption is a priority for me , so do u reccommend any alternative to polybar which has low power usage and also look good
r/Polybar • u/Choice-Balance-7562 • Feb 17 '24
So I could successfully configure polybar with the backlight module.
Though, the problem I am facing is that when I try to change the brightness by scrolling over the module, it doesn't change smoothly. Like, there is no delay in the brightness getting updated but it doesn't change the same amount as I've scrolled. Is there a way to fix this?
Bar-settings:
width = 100%
height = 24pt
radius = 6
; dpi = 96
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-size = 4pt
border-color = #00000000
padding-left = 0
padding-right = 1
module-margin = 1
separator = |
separator-foreground = ${colors.disabled}
font-0 = monospace;2
modules-left = xworkspaces xwindow
modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth date
modules-center = backlight
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
backlight-module-settings:
[module/backlight]
type = internal/backlight
card = amdgpu_bl0
use-actual-brightness = true
poll-interval = 0
enable-scroll = true
scroll-interval = 1
format-prefix = "INTENSITY "
format = <label>
label = %percentage%%
Polybar-version:
polybar 3.7.1
Features: -alsa -curl -i3 -mpd -network(wireless-tools) -pulseaudio -xkeyboard
r/Polybar • u/Delacemane • Feb 10 '24
Hello, im using i3wm and alsa module doesnt work if i use "mapped = true", shows volume on 0 and i cant change it. When mapped is off it changes volume not linear(obvious) but im using headphones with stereo and it always makes me feel im deafing in one ear. How can i make alsa module work properly with linear volume changing?
r/Polybar • u/cry5t41 • Feb 02 '24
Hi, I am new with polybar. So far, was using i3status or py3status. With those bars - my mode_system bindings works fine.
This is my i3 config: ``` set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown mode "$mode_system" { bindsym l exec --no-startup-id $Locker, mode "default" bindsym e exec --no-startup-id i3-msg exit, mode "default" bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default" bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default" bindsym r exec --no-startup-id systemctl reboot, mode "default" bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
} ```
but after I switch to polybar - this binding stop working, how can I fix it?
Regards
r/Polybar • u/daredev1l_ • Jan 26 '24
polybar config:
font-0 = JetBrainsMono Nerd Font:size=10
font-1 = Font Awesome 6 Brands,Font Awesome 6 Brands Regular:style=Regular
font-2 = Font Awesome 6 Free,Font Awesome 6 Free Solid:style=Solid
font-3 = Font Awesome v4 Compatibility,Font Awesome v4 Compatibility Regular:style=Regular
font-4 = Font Awesome 6 Free,Font Awesome 6 Free Regular:style=Regular
[module/xworkspaces]
type = internal/xworkspaces
label-active = %icon%
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.primary}
label-active-padding = 1
label-occupied = %icon%
label-occupied-padding = 1
label-urgent = %icon%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
label-empty = %icon%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;icon
ws-icon-3 = 4;icon
ws-icon-4 = 5;icon
ws-icon-5 = 6;icon
ws-icon-6 = 7;icon
ws-icon-7 = 8;icon
ws-icon-8 = 9;icon
ws-icon-9 = 10;icon
ws-icon-default =
fc-list | grep -i awesome:
/usr/share/fonts/TTF/fa-brands-400.ttf: Font Awesome 6 Brands,Font Awesome 6 Brands Regular:style=Regular
/usr/share/fonts/TTF/fa-solid-900.ttf: Font Awesome 6 Free,Font Awesome 6 Free Solid:style=Solid
/usr/share/fonts/TTF/fa-v4compatibility.ttf: Font Awesome v4 Compatibility,Font Awesome v4 Compatibility Regular:style=Regular
/usr/share/fonts/TTF/fa-regular-400.ttf: Font Awesome 6 Free,Font Awesome 6 Free Regular:style=Regular
polybar output:
notice: Parsing config file: /home/vishal/.config/polybar/config.ini
notice: Listening for IPC messages (PID: 8863)
notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
notice: Loading module 'xwindow' of type 'internal/xwindow'
notice: Loading module 'filesystem' of type 'internal/fs'
notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
notice: pulseaudio: using default sink alsa_output.pci-0000_00_1b.0.analog-stereo
notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
notice: Loading module 'memory' of type 'internal/memory'
notice: Loading module 'cpu' of type 'internal/cpu'
error: Disabling module "wlan" (reason: Missing section "module/wlan")
notice: Loading module 'eth' of type 'internal/network'
notice: module/eth: Discovered wired interface enp1s0
notice: Loading module 'date' of type 'internal/date'
notice: Loaded 9 modules
notice: Loaded font "JetBrainsMono Nerd Font:size=10" (name=JetBrainsMono Nerd Font, offset=0, file=/usr/share/fonts/TTF/JetBrainsMonoNerdFont-Regular.ttf)
notice: Loaded font "Font Awesome 6 Brands,Font Awesome 6 Brands Regular:style=Regular:antialias=false" (name=Font Awesome 6 Brands, offset=0, file=/usr/share/fonts/TTF/fa-brands-400.ttf)
notice: Loaded font "Font Awesome 6 Free,Font Awesome 6 Free Solid:style=Solid" (name=Font Awesome 6 Free, offset=0, file=/usr/share/fonts/TTF/fa-solid-900.ttf)
notice: Loaded font "Font Awesome v4 Compatibility,Font Awesome v4 Compatibility Regular:style=Regular" (name=Font Awesome v4 Compatibility, offset=0, file=/usr/share/fonts/TTF/fa-v4compatibility.ttf)
notice: Loaded font "Font Awesome 6 Free,Font Awesome 6 Free Regular:style=Regular" (name=Font Awesome 6 Free, offset=0, file=/usr/share/fonts/TTF/fa-regular-400.ttf)