mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-22 03:44:48 +02:00
xsettings: use some helper to configure xsettingsd
This commit is contained in:
parent
3743b30f3a
commit
f10cb9fb84
3 changed files with 15 additions and 7 deletions
14
bin/xsettingsd-setup
Executable file
14
bin/xsettingsd-setup
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue