mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 09:35:40 +02:00
15 lines
443 B
Text
15 lines
443 B
Text
|
#!/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 [ -n $pid ]; then
|
||
|
kill -HUP $pid
|
||
|
else
|
||
|
xsettingsd -c ~/.config/awesome/xsettingsd.local &
|
||
|
fi
|