]> git.rmz.io Git - dotfiles.git/blobdiff - xinit/xprofile
xinit: use xss-lock and refactor xprofile into separate files
[dotfiles.git] / xinit / xprofile
similarity index 67%
rename from xprofile
rename to xinit/xprofile
index 976785e7d469deebf88cb0920ca7a4382d1ebef7..e67b840b75dc735275914fee96fd7c1b07d2490a 100644 (file)
--- a/xprofile
@@ -7,15 +7,10 @@ URXVT_PERL_LIB=$URXVT_PERL_LIB:$HOME/src/dotfiles/urxvt/perls/deprecated
 export URXVT_PERL_LIB
 
 urxvtd -q -o &
+
 start-pulseaudio-x11
 compton --config ~/.config/compton.conf &
-xautolock -detectsleep \
-          -notify  600 -notifier "xset dpms force off" \
-          -time     20 -locker   "i3lock -nc 000000" \
-          -killtime 70 -killer   "systemctl suspend" &
 unclutter --timeout 1 &
-[[ -f "$XDG_CONFIG_HOME/xbindkeys/$(hostname)" ]] && xbindkeys --file $XDG_CONFIG_HOME/xbindkeys/$(hostname)
-xkbcomp -I$HOME/.config/xkb $HOME/.config/xkb/$(hostname).xkb $DISPLAY
 xcape -e "Control_L=Escape;Control_R=Escape"
 
 hash ncmpcpp && urxvtc -name ncmpcpp -icon ~/src/dotfiles/icons/bmp.png           -e ncmpcpp
@@ -23,3 +18,12 @@ hash weechat && urxvtc -name weechat -icon ~/src/dotfiles/icons/im-irc.png
 hash neomutt && urxvtc -name mutt    -icon ~/src/dotfiles/icons/internet-mail.png -e neomutt
 
 qutebrowser &
+
+rc_dir="$XDG_CONFIG_HOME/xinit/xprofile.d"
+if [[ -d "$rc_dir" ]] ; then
+    for f in "$rc_dir"/?*.sh ; do
+        [ -x "$f" ] && source "$f"
+    done
+    unset f
+fi
+unset rc_dir