mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-16 05:04:21 +02:00
xsettinsd: restart i3-cmd on DPI change as well
It reads DPI value from Xft.dpi.
This commit is contained in:
parent
7f17d6f397
commit
5141bf86cd
2 changed files with 2 additions and 3 deletions
|
@ -40,6 +40,3 @@ xrandr --dpi $dpi
|
|||
echo Gdk/WindowScalingFactor $(( $dpi/96 ))
|
||||
echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) ))
|
||||
} > ~/.xsettingsd
|
||||
|
||||
# Restart polybar to take changes
|
||||
systemctl --user try-restart --no-block polybar.service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue