forked from extern/nix-config
xeventbind: Set a default Xft.dpi if none is found
Since our scripts depend on Xft.dpi being set, we first set the variable to a reasonable default before doing anything else.
This commit is contained in:
parent
fa8fb212ab
commit
e4eb86bdeb
@ -5,6 +5,11 @@ HOST_WIDTH=$(bspc query -T -m | jq '.rectangle.width')
|
|||||||
|
|
||||||
CURSOR_THEME=${XCURSOR_THEME:-breeze_cursors}
|
CURSOR_THEME=${XCURSOR_THEME:-breeze_cursors}
|
||||||
|
|
||||||
|
# If the DPI is not set, set it to 96 by default
|
||||||
|
if [ -z "$(xrdb -query | grep dpi)" ]; then
|
||||||
|
X_DPI=96
|
||||||
|
fi
|
||||||
|
|
||||||
# Determine the DPI based on screen width
|
# Determine the DPI based on screen width
|
||||||
if [ "$HOST_WIDTH" -eq "1920" ]; then
|
if [ "$HOST_WIDTH" -eq "1920" ]; then
|
||||||
X_DPI=96
|
X_DPI=96
|
||||||
|
Loading…
Reference in New Issue
Block a user