Skip to content

bspwm and polybar #18

@Tarch1

Description

@Tarch1

Hi, first thank's for your work, second I have a problem with polybar that is placed under every windows, then I tryed with

xdo raise -N Polybar

from terminal and it's worked, but if I put inside polybar launcher, never works.
That are my relevant config:

  • bspwmrc

pgrep -x sxhkd > /dev/null || sxhkd &
setxkbmap -layout it &
numlockx &
xsetroot -cursor_name left_ptr &
wal -i ~/.wallpapers/ -o ~/.config/dunst/dunst-color.sh &
xset s 60 120
xss-lock -n "notify-send -u critical -t 5000 -- 'Locking in 1 min'" -- slock &
picom &
./.config/low-battery.sh &
./.config/polybar/launch.sh &

  • launch.sh

killall -q polybar
source ~/.cache/wal/colors.sh
export color0_alpha="#22${color1/'#'}"
polybar bar1 2>&1 | tee -a /tmp/polybar1.log &
xdo raise -N Polybar
~/.config/polybar/hide -d top -N 'polybar' --region 560x10+900+-100 -w &

  • polybar config

[global/wm]
margin-top = 0
margin-bottom = 0

[bar/bar1]
width = 50%
height = 30
offset-x = 25%
offset-y = 1%
fixed-center = true

tray-position = right
tray-detached = true
tray-offset-x = 60

border-bottom-size = 0

background = ${colors.background}
foreground = ${colors.foreground}

padding-left = 5
padding-right = 5
spacing = 0
module-margin = 2

font-0 = SF Pro Display:size=13;3

modules-left = apps date bspwm
modules-center =
modules-right = battery backlight pulseaudio temperature wlan eth powermenu

wm-restack = bspwm
override-redirect = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions