mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-26 11:48:33 +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
|
||||
|
|
|
@ -8,4 +8,6 @@ ExecStartPre=%h/.config/i3/bin/xsettingsd-setup
|
|||
ExecStart=/usr/bin/xsettingsd -c %h/.xsettingsd
|
||||
ExecReload=%h/.config/i3/bin/xsettingsd-setup
|
||||
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||
ExecReload=-/usr/bin/i3-cmd restart # restart i3 (it uses Xft.dpi)
|
||||
ExecReload=/bin/systemctl --user try-restart polybar.service
|
||||
Restart=on-failure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue