mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 18:28:34 +02:00
polybar: don't try compatibility with RandR 1.5
The feature is broken. See: https://gitlab.gnome.org/GNOME/gtk/-/issues/2013.
This commit is contained in:
parent
5b1249737c
commit
25a147b97f
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@
|
|||
export DPI=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
|
||||
export HEIGHT=$((18 * DPI / 96))
|
||||
|
||||
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=$(xrandr --current | awk '($0 ~ / connected / && $0 ~ / [0-9]+x[0-9]+\+/) {print $1}' | tr '\n' ' ')
|
||||
PRIMARY=$(xrandr --current | awk '($0 ~ / connected primary / && $0 ~ / [0-9]+x[0-9]+\+/) {print $1; exit}')
|
||||
PRIMARY=${PRIMARY:-${MONITORS%% *}}
|
||||
|
||||
awk 'BEGIN { i=0 } ($4 == "/" && $3 !~ /^0:/) {print "mount-"i" = "$5; i++}' /proc/self/mountinfo \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue