mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-10 18:24:22 +02:00
Revert "polybar: switch back to xrandr to find monitors"
This reverts commit 41dba59ce2
. It's
fixed now.
This commit is contained in:
parent
fb2671e1e3
commit
385360b516
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ export HEIGHT=$((18 * DPI / 96))
|
|||
# xrandr --setmonitor '*'DisplayPort-3-left 1920/444x1440/334+0+0 DisplayPort-3
|
||||
# xrandr --setmonitor DisplayPort-3-right 1520/352x1440/334+1920+0 none
|
||||
|
||||
MONITORS=$(xrandr --current --listactivemonitors | sed -nE 's/ *([0-9]+): [+*]*([^ ]*).*/\2/p' | tr '\n' ' ')
|
||||
PRIMARY=$(xrandr --current --listactivemonitors | sed -nE 's/ *([0-9]+): [+]?[*]([^ ]*).*/\2/p')
|
||||
MONITORS=$(polybar --list-monitors | sed -nE 's/([^ ]+): .*/\1/p' | tr '\n' ' ')
|
||||
PRIMARY=$(polybar --list-monitors | grep -F '(primary)' | sed -nE 's/([^ ]+): .*/\1/p')
|
||||
NMONITORS=$(echo $MONITORS | wc -w)
|
||||
PRIMARY=${PRIMARY:-${MONITORS%% *}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue