Update HiDPI sections

This commit is contained in:
2Shirt 2022-05-12 20:32:19 -07:00
parent eb0e13e794
commit 19e86e0ba0
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 14 additions and 11 deletions

View file

@ -1,2 +1,5 @@
! Fonts
!Xft.dpi: 192
! st
st.font: Hack:pixelsize=12:antialias=true:autohint=true

View file

@ -1,6 +1,6 @@
/** Basic config file **/
configuration {
show-icons: true;
icon-theme: "Papirus";
show-icons: true;
icon-theme: "Papirus";
}

View file

@ -36,25 +36,25 @@ echo "Done"
if [[ "${dpi}" -ge 192 ]]; then
echo -n "Updating settings for HiDPI... "
# Conky
sed -i 's/default_graph_height = 24/default_graph_height = 48/' "${HOME}/.config/conky/base.conf"
sed -i 's/gap_x = 20/gap_x = 40/' "${HOME}/.config/conky/base.conf"
sed -i 's/gap_y = 24/gap_y = 48/' "${HOME}/.config/conky/base.conf"
sed -i 's/maximum_width = 180/maximum_width = 360/' "${HOME}/.config/conky/base.conf"
sed -i 's/minimum_width = 180/minimum_width = 360/' "${HOME}/.config/conky/base.conf"
# Fonts
sed -i 's/!Xft.dpi: 192/Xft.dpi: 192/' "${HOME}/.Xresources"
sed -i 's/pixelsize=12/pixelsize=24/' "${HOME}/.Xresources"
# GDK
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
# Rofi
sed -i -r 's/Noto Sans 12/Noto Sans 24/' "${HOME}/.config/rofi/config"
sed -i -r 's/}/ dpi: 1;\n}/' "${HOME}/.config/rofi/config.rasi"
sed -i 's/10px/20px/' "${HOME}/.config/rofi/applets/menu/configs/rounded/powermenu.rasi"
sed -i 's/12px/24px/' "${HOME}/.config/rofi/applets/menu/configs/rounded/powermenu.rasi"
sed -i 's/15px/30px/' "${HOME}/.config/rofi/applets/menu/configs/rounded/powermenu.rasi"
sed -i 's/20px/40px/' "${HOME}/.config/rofi/applets/menu/configs/rounded/powermenu.rasi"
sed -i 's/40px/80px/' "${HOME}/.config/rofi/applets/menu/configs/rounded/powermenu.rasi"
sed -i 's/800px/2000px/' "${HOME}/.config/rofi/applets/menu/configs/rounded/powermenu.rasi"
# Tint2
sed -i 's/panel_size = 100% 30/panel_size = 100% 60/' \
sed -i 's/panel_size = 99% 30/panel_size = 99% 60/' \
"${HOME}/.config/tint2/tint2rc"
sed -i 's/Hack 10/Hack 20/g' \
"${HOME}/.config/tint2/tint2rc"