mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-22 11:54:27 +02:00
rofi: use DPI as set by xsettingsd-setup
This commit is contained in:
parent
4d0944b638
commit
d8bb91eacc
2 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,8 @@
|
|||
|
||||
if [ -z "${ROFI_OUTSIDE}" ]; then
|
||||
yoffset=$(( $(xrdb -query | sed -n 's/^Xft.dpi:\t\([0-9]*\)$/\1/p')*20/96 ))
|
||||
exec rofi -show-icons -no-custom -modi m:$0 -show m -location 3 -yoffset $yoffset
|
||||
dpi=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
|
||||
exec rofi -dpi $dpi -show-icons -no-custom -modi m:$0 -show m -location 3 -yoffset $yoffset
|
||||
fi
|
||||
|
||||
case $ROFI_RETV in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue