polybar: use I3SOCK if available

This commit is contained in:
Vincent Bernat 2024-11-02 21:41:04 +01:00
parent e7e0714b92
commit 14789d0ab9

View file

@ -3,6 +3,7 @@
export DPI=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
export HEIGHT=$((20 * DPI / 96))
export BACKLIGHT=$(cd /sys/class/backlight ; ls | head -1)
export I3SOCK=$(i3 --get-socketpath)
polybar --version