Finally got DPI working right everywhere !

master
Quentin Duchemin 2023-10-28 23:52:40 +02:00
parent 5f304686f7
commit aa86cda075
7 changed files with 14 additions and 11 deletions

View File

@ -1,4 +1,4 @@
Xft.dpi: 110
Xft.dpi: 120
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull

View File

@ -19,7 +19,7 @@
width = (0, 400)
height = 100
offset = 15x70
offset = 30x40
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = true

View File

@ -13,9 +13,8 @@ bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10 -steps 200
bindsym XF86KbdBrightnessDown exec --no-startup-id xbacklight -ctrl asus::kbd_backlight -dec 30
bindsym XF86KbdBrightnessUp exec --no-startup-id xbacklight -ctrl asus::kbd_backlight -inc 30
# set DPI along with .Xresources
exec xrandr --dpi 160
# Only dunst seems to care about this setting
exec xrandr --dpi 90
##################################
# PROGRAMS STARTED AUTOMATICALLY

View File

@ -42,6 +42,9 @@ smart_gaps on
# PROGRAMS STARTED AUTOMATICALLY
##################################
# Load Xresources
exec --no-startup-id xrdb -merge ~/.Xresources
# Start compositor
exec --no-startup-id picom --config ~/.config/picom.conf

View File

@ -1,6 +1,6 @@
[variables]
dpi = 90
height = 27
dpi = 100
height = 30
top_left = powermenu system-uptime-pretty player-mpris
top_center = xwindow
top_right = system-usb-udev alsa date

View File

@ -1,6 +1,6 @@
[variables]
dpi = 100
height = 35
dpi = 110
height = 40
top_left = powermenu system-uptime-pretty battery player-mpris
top_center = xwindow
top_right = system-usb-udev backlight pulseaudio date

View File

@ -62,7 +62,7 @@ function merge_config() {
if [ ! -z ${2} ] && [ -d ${CONFIG}/${m}/${MERGE_CONFIG_FOLDER} ]; then
for f in `find ${CONFIG}/${m}/config.d -type f -path "*${2}"`; do
final_path=${CONFIG}/${m}/${FINAL_CONFIG}
if [ ! -z $3 ]; then
if [ -z $3 ]; then
echo "Found ${f}, append to regular config file"
cat "${f}" >> ${final_path}
else
@ -88,7 +88,8 @@ CONFIG=${XDG_CONFIG_HOME:-$HOME/.config}
ENV=${1}
for m in ${MERGE_DIRS}; do
if [ -f ${m}/above ]; then
echo ${m}
if [ -f "${CONFIG}/${m}/${MERGE_CONFIG_FOLDER}/above" ]; then
merge_config $m ${ENV} true
else
merge_config $m ${ENV}