summaryrefslogtreecommitdiff
path: root/x11/.xinitrc
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-08-02 22:13:57 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-08-02 22:13:57 -0400
commit3bad8f5d64170ab0ed582a37838e120bec87fb90 (patch)
treeaebe3af0b9f2020533f2e8b7e9d1607923ee400c /x11/.xinitrc
parent9df360b86c31398348e66ef9c3dc77b2d84ff3bd (diff)
downloaddotfiles-3bad8f5d64170ab0ed582a37838e120bec87fb90.tar.gz
add x11 and i3 stuff
Diffstat (limited to 'x11/.xinitrc')
-rw-r--r--x11/.xinitrc24
1 files changed, 24 insertions, 0 deletions
diff --git a/x11/.xinitrc b/x11/.xinitrc
new file mode 100644
index 0000000..5a1c4fc
--- /dev/null
+++ b/x11/.xinitrc
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+dpi=96
+bg_color=696969
+font_size=12
+xidle_timeout=900
+
+case $(hostname -s) in
+ rlaptop1)
+ font_size=16
+ ;;
+esac
+
+font="-xos4-terminus-medium-r-normal-*-${font_size}-*-*-*-*-*-iso10646-*"
+xft_font="Terminus:pixelslize=${font_size}:encoding=iso10646"
+
+xrdb -DDPI="$dpi" -DFONT="$font" -DXFT_FONT="$xft_font" -merge "${HOME}/.Xresources"
+xsetroot -solid "#${bg_color}"
+xset b off
+setxkbmap -option ctrl:nocaps
+xidle -program "$(which i3lock) -e -c ${bg_color}" -timeout "$xidle_timeout" &
+sudo -n networkmgr &
+
+exec i3