summaryrefslogtreecommitdiff
path: root/dotfiles/common/.profile.d
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/common/.profile.d')
-rw-r--r--dotfiles/common/.profile.d/auto-tmux-session.sh8
-rw-r--r--dotfiles/common/.profile.d/display.sh11
-rw-r--r--dotfiles/common/.profile.d/framework.sh9
3 files changed, 28 insertions, 0 deletions
diff --git a/dotfiles/common/.profile.d/auto-tmux-session.sh b/dotfiles/common/.profile.d/auto-tmux-session.sh
new file mode 100644
index 0000000..cd39fab
--- /dev/null
+++ b/dotfiles/common/.profile.d/auto-tmux-session.sh
@@ -0,0 +1,8 @@
+# auto-tmux-session.sh
+# Craig Jennings <c@cjennings.net>
+# Start tmux automatically when connecting via SSH
+
+if [ -z "$TMUX" ] && [ -n "$SSH_CONNECTION" ]; then
+ export TERM="xterm-mono"
+ tmux attach-session -t "$USER" || tmux new-session -s "$USER"
+fi
diff --git a/dotfiles/common/.profile.d/display.sh b/dotfiles/common/.profile.d/display.sh
new file mode 100644
index 0000000..254fc53
--- /dev/null
+++ b/dotfiles/common/.profile.d/display.sh
@@ -0,0 +1,11 @@
+# display.sh
+# Craig Jennings <c@cjennings.net>
+# UI appearance environment variables
+
+# GTK Theme
+export GTK_THEME=Adwaita:dark
+
+# Qt theming - use qt6ct config with Adwaita-Dark style
+export QT_QPA_PLATFORMTHEME=qt6ct
+export QT_STYLE_OVERRIDE=Adwaita-Dark
+export QT_SCALE_FACTOR=1
diff --git a/dotfiles/common/.profile.d/framework.sh b/dotfiles/common/.profile.d/framework.sh
new file mode 100644
index 0000000..5013e8d
--- /dev/null
+++ b/dotfiles/common/.profile.d/framework.sh
@@ -0,0 +1,9 @@
+# framework.sh
+# Craig Jennings <c@cjennings.net>
+# Framework 13 laptop specific environment variables
+
+# HiDPI scaling (integer scaling for X11)
+# Note: Wayland handles scaling differently via compositor
+export GDK_DPI_SCALE=1
+export GDK_SCALE=1
+export QT_AUTO_SCREEN_SCALE_FACTOR=1