mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 09:35:40 +02:00
polybar: use I3SOCK if available
This commit is contained in:
parent
e7e0714b92
commit
14789d0ab9
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
export DPI=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
|
export DPI=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
|
||||||
export HEIGHT=$((20 * DPI / 96))
|
export HEIGHT=$((20 * DPI / 96))
|
||||||
export BACKLIGHT=$(cd /sys/class/backlight ; ls | head -1)
|
export BACKLIGHT=$(cd /sys/class/backlight ; ls | head -1)
|
||||||
|
export I3SOCK=$(i3 --get-socketpath)
|
||||||
|
|
||||||
polybar --version
|
polybar --version
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue