Finally got DPI working right everywhere !
parent
5f304686f7
commit
aa86cda075
|
@ -1,4 +1,4 @@
|
||||||
Xft.dpi: 110
|
Xft.dpi: 120
|
||||||
Xft.autohint: 0
|
Xft.autohint: 0
|
||||||
Xft.lcdfilter: lcddefault
|
Xft.lcdfilter: lcddefault
|
||||||
Xft.hintstyle: hintfull
|
Xft.hintstyle: hintfull
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
width = (0, 400)
|
width = (0, 400)
|
||||||
height = 100
|
height = 100
|
||||||
offset = 15x70
|
offset = 30x40
|
||||||
|
|
||||||
# Show how many messages are currently hidden (because of geometry).
|
# Show how many messages are currently hidden (because of geometry).
|
||||||
indicate_hidden = true
|
indicate_hidden = true
|
||||||
|
|
|
@ -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 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
|
bindsym XF86KbdBrightnessUp exec --no-startup-id xbacklight -ctrl asus::kbd_backlight -inc 30
|
||||||
|
|
||||||
|
# Only dunst seems to care about this setting
|
||||||
# set DPI along with .Xresources
|
exec xrandr --dpi 90
|
||||||
exec xrandr --dpi 160
|
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
# PROGRAMS STARTED AUTOMATICALLY
|
# PROGRAMS STARTED AUTOMATICALLY
|
||||||
|
|
|
@ -42,6 +42,9 @@ smart_gaps on
|
||||||
# PROGRAMS STARTED AUTOMATICALLY
|
# PROGRAMS STARTED AUTOMATICALLY
|
||||||
##################################
|
##################################
|
||||||
|
|
||||||
|
# Load Xresources
|
||||||
|
exec --no-startup-id xrdb -merge ~/.Xresources
|
||||||
|
|
||||||
# Start compositor
|
# Start compositor
|
||||||
exec --no-startup-id picom --config ~/.config/picom.conf
|
exec --no-startup-id picom --config ~/.config/picom.conf
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[variables]
|
[variables]
|
||||||
dpi = 90
|
dpi = 100
|
||||||
height = 27
|
height = 30
|
||||||
top_left = powermenu system-uptime-pretty player-mpris
|
top_left = powermenu system-uptime-pretty player-mpris
|
||||||
top_center = xwindow
|
top_center = xwindow
|
||||||
top_right = system-usb-udev alsa date
|
top_right = system-usb-udev alsa date
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[variables]
|
[variables]
|
||||||
dpi = 100
|
dpi = 110
|
||||||
height = 35
|
height = 40
|
||||||
top_left = powermenu system-uptime-pretty battery player-mpris
|
top_left = powermenu system-uptime-pretty battery player-mpris
|
||||||
top_center = xwindow
|
top_center = xwindow
|
||||||
top_right = system-usb-udev backlight pulseaudio date
|
top_right = system-usb-udev backlight pulseaudio date
|
||||||
|
|
|
@ -62,7 +62,7 @@ function merge_config() {
|
||||||
if [ ! -z ${2} ] && [ -d ${CONFIG}/${m}/${MERGE_CONFIG_FOLDER} ]; then
|
if [ ! -z ${2} ] && [ -d ${CONFIG}/${m}/${MERGE_CONFIG_FOLDER} ]; then
|
||||||
for f in `find ${CONFIG}/${m}/config.d -type f -path "*${2}"`; do
|
for f in `find ${CONFIG}/${m}/config.d -type f -path "*${2}"`; do
|
||||||
final_path=${CONFIG}/${m}/${FINAL_CONFIG}
|
final_path=${CONFIG}/${m}/${FINAL_CONFIG}
|
||||||
if [ ! -z $3 ]; then
|
if [ -z $3 ]; then
|
||||||
echo "Found ${f}, append to regular config file"
|
echo "Found ${f}, append to regular config file"
|
||||||
cat "${f}" >> ${final_path}
|
cat "${f}" >> ${final_path}
|
||||||
else
|
else
|
||||||
|
@ -88,7 +88,8 @@ CONFIG=${XDG_CONFIG_HOME:-$HOME/.config}
|
||||||
ENV=${1}
|
ENV=${1}
|
||||||
|
|
||||||
for m in ${MERGE_DIRS}; do
|
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
|
merge_config $m ${ENV} true
|
||||||
else
|
else
|
||||||
merge_config $m ${ENV}
|
merge_config $m ${ENV}
|
||||||
|
|
Loading…
Reference in New Issue