summaryrefslogtreecommitdiffstats
path: root/.xinitrc
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-27 13:40:58 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-27 13:40:58 -0400
commit782e66df1a5161ec165206e1865ed4e3574927a6 (patch)
treea6114784701c880f3688f94e497c48f0c97588a6 /.xinitrc
parente1ccd14331d66168937f5e6c03c204aa85c73af6 (diff)
downloadeibhear-782e66df1a5161ec165206e1865ed4e3574927a6.tar.gz
eibhear-782e66df1a5161ec165206e1865ed4e3574927a6.tar.zst
eibhear-782e66df1a5161ec165206e1865ed4e3574927a6.zip
xprofile distinct for DM users
Diffstat (limited to '.xinitrc')
-rw-r--r--.xinitrc24
1 files changed, 13 insertions, 11 deletions
diff --git a/.xinitrc b/.xinitrc
index 8b3910d..9bb70b1 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -1,17 +1,19 @@
#!/bin/sh
-setbg & # Set the background
-sxhkd & # Bind keys
-# Switch to US international with Caps as Mod/Escape
-setxkbmap -option caps:super -variant altgr-intl && killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' &
-# Properties button extra Mod/Escape
-xmodmap -e 'keycode 135 = Super_R' &
-xset r rate 300 50 & # Speed xrate up
-unclutter & # Remove mouse when idle
-xcompmgr & # xcompmgr for transparency
-dunst & # dunst for notifications
+# xinitrc runs automatically when you run startx.
+
+# There are some small but important commands that need to be run when we start
+# the graphical environment. I keep those commands in ~/.xprofile because that
+# file is run automatically if someone uses a display manager (login screen)
+# and so they are needed there. To prevent doubling up commands, I source them
+# here with the line below.
+
+[ -f ~/.xprofile ] && . ~/.xprofile
+
+
+# Here we start dwm.
+# The loop is just to enable dwm's "restart" feature (mod+F2).
while :; do
- dwmbar &
ssh-agent dwm || break
done