I'm going to need several versions of modules containing .Xresources with e.g.
Code: Select all
Xft.dpi: 120
Code: Select all
export QT_FONT_DPI=140
Code: Select all
Xft.dpi: 120
Code: Select all
export QT_FONT_DPI=140
Code: Select all
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCALE_FACTOR=2
Code: Select all
#!/bin/bash
xfceVersion=`xfce4-session -V | cut -d '(' -f2`
xfceVersion=`echo $xfceVersion | cut -d ')' -f1`
xfceVersion=`echo $xfceVersion | cut -d ' ' -f2`
if [[ $1 == "100" ]] || [[ $1 == "" ]]; then
xfconf-query -c xsettings -p /Xft/DPI -s 96
xfconf-query -c xsettings -p /Xft/HintStyle -s "hintfull"
xfconf-query -c xsettings -p /Xft/RGBA -s "rgb"
xfconf-query -c xfce4-panel -p /panels/panel-1/size -s 31
xfconf-query -c xfce4-desktop -p /desktop-icons/icon-size -s 42
xfconf-query -c xsettings -p /Gtk/CursorThemeSize -s 16
xfconf-query -c xfwm4 -p /general/theme -s "Porteus-dark"
if [[ $xfceVersion == "4.12" ]]; then
xfconf-query -c thunar --create -p /shortcuts-icon-size -t string -s "THUNAR_ICON_SIZE_SMALLER"
xfconf-query -c thunar --create -p /tree-icon-size -t string -s "THUNAR_ICON_SIZE_SMALLER"
xfconf-query -c thunar -p /last-details-view-zoom-level -s "THUNAR_ZOOM_LEVEL_SMALLER"
xfconf-query -c thunar -p /last-icon-view-zoom-level -s "THUNAR_ZOOM_LEVEL_NORMAL"
else
xfconf-query -c xsettings --create -p /Gdk/WindowScalingFactor -t int -s 1
xfconf-query -c thunar --create -p /shortcuts-icon-size -t string -s "THUNAR_ICON_SIZE_24"
xfconf-query -c thunar --create -p /tree-icon-size -t string -s "THUNAR_ICON_SIZE_16"
xfconf-query -c thunar -p /last-details-view-zoom-level -s "THUNAR_ZOOM_LEVEL_38_PERCENT"
xfconf-query -c thunar -p /last-icon-view-zoom-level -s "THUNAR_ZOOM_LEVEL_75_PERCENT"
fi
elif [[ $1 == "125" ]]; then
xfconf-query -c xsettings -p /Xft/DPI -s 120
xfconf-query -c xsettings -p /Xft/HintStyle -s "hintfull"
xfconf-query -c xsettings -p /Xft/RGBA -s "rgb"
xfconf-query -c xfce4-panel -p /panels/panel-1/size -s 39
xfconf-query -c xfce4-desktop -p /desktop-icons/icon-size -s 53
xfconf-query -c xsettings -p /Gtk/CursorThemeSize -s 24
xfconf-query -c xfwm4 -p /general/theme -s "Porteus-dark"
if [[ $xfceVersion == "4.12" ]]; then
xfconf-query -c thunar --create -p /shortcuts-icon-size -t string -s "THUNAR_ICON_SIZE_SMALL"
xfconf-query -c thunar --create -p /tree-icon-size -t string -s "THUNAR_ICON_SIZE_SMALL"
xfconf-query -c thunar -p /last-details-view-zoom-level -s "THUNAR_ZOOM_LEVEL_SMALL"
xfconf-query -c thunar -p /last-icon-view-zoom-level -s "THUNAR_ZOOM_LEVEL_NORMAL"
else
xfconf-query -c xsettings --create -p /Gdk/WindowScalingFactor -t int -s 1
xfconf-query -c thunar --create -p /shortcuts-icon-size -t string -s "THUNAR_ICON_SIZE_32"
xfconf-query -c thunar --create -p /tree-icon-size -t string -s "THUNAR_ICON_SIZE_24"
xfconf-query -c thunar -p /last-details-view-zoom-level -s "THUNAR_ZOOM_LEVEL_50_PERCENT"
xfconf-query -c thunar -p /last-icon-view-zoom-level -s "THUNAR_ZOOM_LEVEL_100_PERCENT"
fi
elif [[ $1 == "150" ]]; then
xfconf-query -c xsettings -p /Xft/DPI -s 144
xfconf-query -c xsettings -p /Xft/HintStyle -s "hintslight"
xfconf-query -c xsettings -p /Xft/RGBA -s "rgb"
xfconf-query -c xfce4-panel -p /panels/panel-1/size -s 47
xfconf-query -c xfce4-desktop -p /desktop-icons/icon-size -s 63
xfconf-query -c xsettings -p /Gtk/CursorThemeSize -s 32
xfconf-query -c xfwm4 -p /general/theme -s "Default-hdpi"
if [[ $xfceVersion == "4.12" ]]; then
xfconf-query -c thunar --create -p /shortcuts-icon-size -t string -s "THUNAR_ICON_SIZE_NORMAL"
xfconf-query -c thunar --create -p /tree-icon-size -t string -s "THUNAR_ICON_SIZE_NORMAL"
xfconf-query -c thunar -p /last-details-view-zoom-level -s "THUNAR_ZOOM_LEVEL_NORMAL"
xfconf-query -c thunar -p /last-icon-view-zoom-level -s "THUNAR_ZOOM_LEVEL_LARGER"
else
xfconf-query -c xsettings --create -p /Gdk/WindowScalingFactor -t int -s 1
xfconf-query -c thunar --create -p /shortcuts-icon-size -t string -s "THUNAR_ICON_SIZE_48"
xfconf-query -c thunar --create -p /tree-icon-size -t string -s "THUNAR_ICON_SIZE_24"
xfconf-query -c thunar -p /last-details-view-zoom-level -s "THUNAR_ZOOM_LEVEL_75_PERCENT"
xfconf-query -c thunar -p /last-icon-view-zoom-level -s "THUNAR_ZOOM_LEVEL_113_PERCENT"
fi
elif [[ $1 == "200" ]]; then
xfconf-query -c xsettings -p /Xft/HintStyle -s "hintnone"
xfconf-query -c xsettings -p /Xft/RGBA -s "none"
xfconf-query -c xsettings -p /Gtk/CursorThemeSize -s 64
xfconf-query -c xfwm4 -p /general/theme -s "Default-hdpi"
if [[ $xfceVersion == "4.12" ]]; then
xfconf-query -c xsettings -p /Xft/DPI -s 192
xfconf-query -c xfce4-panel -p /panels/panel-1/size -s 62
xfconf-query -c xfce4-desktop -p /desktop-icons/icon-size -s 84
xfconf-query -c thunar --create -p /shortcuts-icon-size -t string -s "THUNAR_ICON_SIZE_NORMAL"
xfconf-query -c thunar --create -p /tree-icon-size -t string -s "THUNAR_ICON_SIZE_LARGER"
xfconf-query -c thunar -p /last-details-view-zoom-level -s "THUNAR_ZOOM_LEVEL_LARGER"
xfconf-query -c thunar -p /last-icon-view-zoom-level -s "THUNAR_ZOOM_LEVEL_LARGER"
else
xfconf-query -c xsettings --create -p /Gdk/WindowScalingFactor -t int -s 2
#xfconf-query -c thunar --create -p /shortcuts-icon-size -t string -s "THUNAR_ICON_SIZE_48"
#xfconf-query -c thunar --create -p /tree-icon-size -t string -s "THUNAR_ICON_SIZE_32"
#xfconf-query -c thunar -p /last-details-view-zoom-level -s "THUNAR_ZOOM_LEVEL_75_PERCENT"
#xfconf-query -c thunar -p /last-icon-view-zoom-level -s "THUNAR_ZOOM_LEVEL_150_PERCENT"
fi
fi
xfce4-panel -r
Code: Select all
export QT_FONT_DPI=200
Xft.dpi: 200
Code: Select all
xfconf-query -c xsettings --create -p /Gdk/WindowScalingFactor -t int -s 2
Code: Select all
#!/bin/bash
export GDK_SCALE=2
export QT_SCALE_FACTOR=2
xfconf-query -c xsettings -p /Xft/HintStyle -s "hintnone"
xfconf-query -c xsettings -p /Xft/RGBA -s "none"
xfconf-query -c xsettings -p /Gtk/CursorThemeSize -s 64
xfconf-query -c xfwm4 -p /general/theme -s "Default-xhdpi"
xfconf-query -c xsettings --create -p /Gdk/WindowScalingFactor -t int -s 2
Code: Select all
[Desktop Entry]
Exec=/home/guest/.config/autostart/hidpi
Name=HiDPI