summaryrefslogtreecommitdiff
path: root/bin/i3-startup-always
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-08-28 10:20:14 -0700
committerSean Whitton <spwhitton@spwhitton.name>2017-08-28 10:20:14 -0700
commit086a1add4d0c8508dfd2fe54d2f622ca5e321abe (patch)
tree8309b6dff9ac7540527355f3cfba70ef6594df8b /bin/i3-startup-always
parentc2b53a2059019abd772863424dcf199f1775452b (diff)
downloaddotfiles-086a1add4d0c8508dfd2fe54d2f622ca5e321abe.tar.gz
migrate away from .xsessionrc
This seems to interrupt Debian's /etc/Xsession machinery. Other changes: - call idempotent settings when reloading i3, too - improve invocation of numlockx - simplify scripts to remove items Xsession handles for us
Diffstat (limited to 'bin/i3-startup-always')
-rwxr-xr-xbin/i3-startup-always27
1 files changed, 27 insertions, 0 deletions
diff --git a/bin/i3-startup-always b/bin/i3-startup-always
new file mode 100755
index 00000000..6fc7ce62
--- /dev/null
+++ b/bin/i3-startup-always
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# idempotent X settings
+
+. $HOME/.shenv
+
+# ---- no bell please
+
+xset b off
+
+# ---- keyboard settings
+
+xset r rate 380 25
+setxkbmap -option ctrl:nocaps
+xmodmap ~/.xmodmaprc
+
+# enable numlock if using USB keyboard
+. /etc/X11/Xsession.d/55numlockx
+
+# ---- monitor settings
+
+xset dpms 600
+xsetroot -solid \#3f3f3f
+
+# ---- workspace default layouts (currently only workspace 1)
+
+per-workspace-layout.pl &