mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
14 lines
447 B
Bash
Executable file
14 lines
447 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Build xsettingsd.local
|
|
cp ~/.config/awesome/xsettingsd ~/.config/awesome/xsettingsd.local
|
|
echo Xft/DPI $(( $(xdpyinfo | \
|
|
awk '$1 ~ /resolution:/ { print $2 }' | sed 's/x.*//') * 1024 )) >> ~/.config/awesome/xsettingsd.local
|
|
|
|
# Signal xsettingsd
|
|
pid=$(xprop -name xsettingsd _NET_WM_PID 2> /dev/null | awk '{print $NF}')
|
|
if [ x"$pid" = x ]; then
|
|
xsettingsd -c ~/.config/awesome/xsettingsd.local &
|
|
else
|
|
kill -HUP $pid
|
|
fi
|