mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 03:08:34 +02:00
xsettingsd: fix inlining of the change() function
This commit is contained in:
parent
6625f42128
commit
c944c7855d
1 changed files with 5 additions and 4 deletions
|
@ -28,15 +28,16 @@ case $(hostname),$(autorandr --current) in
|
||||||
*,*) dpi=96 ;;
|
*,*) dpi=96 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo "using ${dpi}dpi" >&2
|
||||||
xrandr --dpi $dpi
|
xrandr --dpi $dpi
|
||||||
|
|
||||||
# Build xsettingsd.local
|
# Build xsettingsd.local
|
||||||
{
|
{
|
||||||
cat ~/.config/awesome/xsettingsd
|
cat ~/.config/awesome/xsettingsd
|
||||||
echo Xft/DPI $(( $1*1024 ))
|
echo Xft/DPI $(( $dpi*1024 ))
|
||||||
echo Xft/RGBA \"$( [ $1 -gt 144 ] && echo none || echo rgb )\"
|
echo Xft/RGBA \"$( [ $dpi -gt 144 ] && echo none || echo rgb )\"
|
||||||
echo Gdk/WindowScalingFactor $(( $1/96 ))
|
echo Gdk/WindowScalingFactor $(( $dpi/96 ))
|
||||||
echo Gdk/UnscaledDPI $(( $1*1024/($1/96) ))
|
echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) ))
|
||||||
} > ~/.xsettingsd
|
} > ~/.xsettingsd
|
||||||
|
|
||||||
# Signal xsettingsd
|
# Signal xsettingsd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue