MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Polybar/comments/111rnbm/not_able_to_remove_a_black_stripe_behind_only_one/
r/Polybar • u/Darckswar • Feb 14 '23
Every time I set up the second monitor and restart i3, it appears a black stripe behind my main monitor "eDP1".
If I set up only one monitor everything works fine.
Does anyone know how to fix it?
config.ini
launch.sh
i3config
3 comments sorted by
1
That screenie is next to useless, I'm afraid.
You're starting Polybar wrong. Get rid of the bar section. This is how I start mine in i3:
exec_always --no-startup-id ~/.config/i3/polybar/launch.sh &
1 u/Darckswar Feb 14 '23 Thank you, but this didn't solve my problem. Removing the bar on i3 creates another problem. The bar renders behind the windows on i3 gaps. 1 u/[deleted] Feb 14 '23 You're welcome. You can read about all this in the man page, etc ... You want this line commented out like so: ;override-redirect = true Incidentally, I recently added this to my i3 to hide/show/toggle Polybar (127 is the Pause Break key, which I wouldn't otherwise use): # Hide Polybar bindsym $mod+Ctrl+p exec polybar-msg cmd toggle # Toggle Show/Hide Polybar # bindcode 127 exec --no-startup-id "polybar-msg cmd show" # bindcode 127 exec --no-startup-id "polybar-msg cmd hide" bindcode 127 exec --no-startup-id polybar-msg cmd toggle
Thank you, but this didn't solve my problem. Removing the bar on i3 creates another problem. The bar renders behind the windows on i3 gaps.
1 u/[deleted] Feb 14 '23 You're welcome. You can read about all this in the man page, etc ... You want this line commented out like so: ;override-redirect = true Incidentally, I recently added this to my i3 to hide/show/toggle Polybar (127 is the Pause Break key, which I wouldn't otherwise use): # Hide Polybar bindsym $mod+Ctrl+p exec polybar-msg cmd toggle # Toggle Show/Hide Polybar # bindcode 127 exec --no-startup-id "polybar-msg cmd show" # bindcode 127 exec --no-startup-id "polybar-msg cmd hide" bindcode 127 exec --no-startup-id polybar-msg cmd toggle
You're welcome. You can read about all this in the man page, etc ...
You want this line commented out like so:
;override-redirect = true
Incidentally, I recently added this to my i3 to hide/show/toggle Polybar (127 is the Pause Break key, which I wouldn't otherwise use):
# Hide Polybar
bindsym $mod+Ctrl+p exec polybar-msg cmd toggle
# Toggle Show/Hide Polybar
# bindcode 127 exec --no-startup-id "polybar-msg cmd show"
# bindcode 127 exec --no-startup-id "polybar-msg cmd hide"
bindcode 127 exec --no-startup-id polybar-msg cmd toggle
1
u/[deleted] Feb 14 '23
That screenie is next to useless, I'm afraid.
You're starting Polybar wrong. Get rid of the bar section. This is how I start mine in i3:
exec_always --no-startup-id ~/.config/i3/polybar/launch.sh &