From 24c23c06fe8e825733cad65307aaf1ff16beb1ab Mon Sep 17 00:00:00 2001
From: Frederik Vanrenterghem <frederik@vanrenterghem.biz>
Date: Wed, 26 Jun 2024 21:32:38 +0800
Subject: [PATCH] Stow xorg-xinit config.

---
 xorg-xinit/.xinitrc | 52 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 xorg-xinit/.xinitrc

diff --git a/xorg-xinit/.xinitrc b/xorg-xinit/.xinitrc
new file mode 100644
index 0000000..a8ad133
--- /dev/null
+++ b/xorg-xinit/.xinitrc
@@ -0,0 +1,52 @@
+if [ -d /etc/X11/xinit/xinitrc.d ] ; then
+ for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
+  [ -x "$f" ] && . "$f"
+ done
+ unset f
+fi
+
+# Effectively disable DPMS by setting values to 0 as laptop screen does not resume
+# Use standard blank screen saver after 5 minutes
+export DISPLAY=:0.0
+xset s 300
+xset s blank
+xset dpms 0 0 0
+
+# Start XScreensaver in background
+# xscreensaver &
+
+# Use terminology as the default term emulator in eg i3
+export TERMINAL=terminology
+
+# Disable bell
+xset -b
+
+# Enable zapping (C-A-<Bksp> kills X)
+setxkbmap -option terminate:ctrl_alt_bksp
+
+# Enforce correct locales from the beginning
+unset LC_COLLATE
+export LC_CTYPE=en_AU.UTF-8
+export LC_TIME=en_AU.UTF-8
+export LC_NUMERIC=en_AU.UTF-8
+export LC_MONETARY=en_AU.UTF-8
+export LC_MESSAGES=C
+export LC_PAPER=en_AU.UTF-8
+export LC_NAME=en_AU.UTF-8
+export LC_ADDRESS=en_AU.UTF-8
+export LC_TELEPHONE=en_AU.UTF-8
+export LC_MEASUREMENT=en_AU.UTF-8
+export LC_IDENTIFICATION=en_AU.UTF-8
+
+# Use XToolkit in java applications
+export AWT_TOOLKIT=XToolkit
+
+# Set background color
+xsetroot -solid "#333333"
+
+# Enable core dumps in case something goes wrong
+ulimit -c unlimited
+
+# Start i3 and log to ~/.i3logfile
+echo "Starting at $(date)" >> ~/.i3logfile
+exec /usr/bin/i3 -V -d all >> ~/.i3logfile
-- 
2.39.5