commit a4e9c28da58f6f40d8964664d7ad9d85b442a8e1
parent c49f29e793da87fbecae0469158e42e0f0d91e06
Author: Daniel Moch <daniel@danielmoch.com>
Date: Sun, 24 Mar 2019 08:16:26 -0400
Update dotfiles for new (HiDPI) laptop
Since my goal is generality, changes are usually to capture things I
failed to properly generalize in my dotfiles to-date. Mostly this
includes consistent use of DPI settings. I've also enabled an
environment variable to request Qt-based applications scale themselves
appropriately based on the detected DPI.
Diffstat:
6 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/.Xresources b/.Xresources
@@ -51,7 +51,7 @@ XTerm*metaSendsEscape: true
XTerm*pointerMode: 2
! URvxt
-URxvt.font: xft:monospace:size=10,xft:emoji:pixelsize=8
+URxvt.font: xft:monospace:size=10,xft:emoji:size=8
URxvt.perl-ext: default,url-select
URxvt.letterSpace: -1
URxvt.lineSpace: -1
diff --git a/.config/awesome/theme.lua b/.config/awesome/theme.lua
@@ -101,8 +101,8 @@ theme.awesome_icon = theme_assets.awesome_icon(
theme.menu_height, theme.bg_focus, theme.fg_focus
)
-theme.wibar_height = dpi(18)
-theme.titlebar_height = dpi(18)
+theme.wibar_height = dpi(16)
+theme.titlebar_height = dpi(16)
-- Define the icon theme for application icons. If not set then the icons
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini
@@ -1,4 +1,4 @@
[Settings]
gtk-application-prefer-dark-theme = true
gtk-can-change-accels = 1
-gtk-font-name = "Sans 9"
+gtk-font-name = "sans 9"
diff --git a/.gtkrc-2.0 b/.gtkrc-2.0
@@ -1,2 +1,2 @@
gtk-can-change-accels = 1
-gtk-font-name = "Sans 9"
+gtk-font-name = "sans 9"
diff --git a/.local/bin/my b/.local/bin/my
@@ -216,7 +216,7 @@ case $command in
then
# Future-proofing ... gmux is specific, imagine other
# systems will be different
- for opt in gmux
+ for opt in gmux intel_backlight
do
selection=`xbacklight -list | grep $opt`
num=`echo $selection | wc -w`
diff --git a/.profile b/.profile
@@ -48,6 +48,8 @@ then
export GOPATH
fi
+QT_AUTO_SCREEN_SCALE_FACTOR=1; export QT_AUTO_SCREEN_SCALE_FACTOR
+
__addpath ()
{
if [ -d "$1" ]