Skip to content

Баг с polybar #47

@LarrianX

Description

@LarrianX

Скрипт bin/toggle-polybar

#!/bin/sh
pgrep -x polybar
status=$?
if test $status -eq 0
then
  killall polybar && bspc config -m focused top_padding 0
else
  $HOME/.config/polybar/launch.sh && bspc config -m focused top_padding 31
fi

Вызывает polybar и смещает на активном мониторе(-m focused) окно. Но при этом polybar же не обязательно тоже появляется на активном мониторе, по умолчанию он появляется на primary мониторе и лучше указать -m primary. С другой стороны, у пользователя может быть несколько polybar, с другой, polybar может находится не на primary мониторе и тут надо подумать

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