aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-28 19:00:04 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-28 19:00:04 +0200
commit33ede38c48082c6b3b32947311fa70da0d78499c (patch)
treefb07c0570fe9ef8533968d909946a508b98e8e39
parentb0f6e0b064264b5b27d1eb7a71c43c6640e16632 (diff)
downloaddotfiles-33ede38c48082c6b3b32947311fa70da0d78499c.tar.gz
xinitrc.d added
-rw-r--r--.xinitrc32
-rwxr-xr-xxinitrc.d/00-misc.sh5
-rwxr-xr-xxinitrc.d/10-background.sh12
-rwxr-xr-xxinitrc.d/10-screensaver.sh8
-rwxr-xr-xxinitrc.d/99-wm.sh7
5 files changed, 38 insertions, 26 deletions
diff --git a/.xinitrc b/.xinitrc
index 2270f19..d9f49ab 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -11,31 +11,11 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
unset f
fi
-# turn off Display Power Management Service (DPMS)
-xset -dpms
-setterm -blank 0 -powerdown 0
-
-# turn off black Screensaver
-xset s off
-
-#Screen background feh
-shopt -s nullglob
-
-pics=(~/vimconfig/pictures/b_*)
-#echo $pics
-len=${#pics[*]}
-ran=$(($RANDOM % len))
-
-feh --bg-fill ${pics[$ran]}
-
-xrdb .Xresources
-
-setxkbmap -layout de
-compton &
-dunst &
-
-if [ $DISPLAY -e ":0" ]; then
- lxqt-policykit-agent &
+if [ -f ~/.files ]; then
+ source ~/.files
+ for f in $DOTFILEBASE/xinitrc.d/*; do
+ [ -x "$f" ] && . "$f"
+ done
+ unset f
fi
-exec i3
diff --git a/xinitrc.d/00-misc.sh b/xinitrc.d/00-misc.sh
new file mode 100755
index 0000000..7ad268d
--- /dev/null
+++ b/xinitrc.d/00-misc.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+xrdb .Xresources
+
+setxkbmap -layout de
diff --git a/xinitrc.d/10-background.sh b/xinitrc.d/10-background.sh
new file mode 100755
index 0000000..359e65e
--- /dev/null
+++ b/xinitrc.d/10-background.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+#Screen background feh
+shopt -s nullglob
+
+pics=(~/vimconfig/pictures/b_*)
+len=${#pics[*]}
+ran=$(($RANDOM % len))
+
+feh --bg-fill ${pics[$ran]}
+
+unset pics len ran
diff --git a/xinitrc.d/10-screensaver.sh b/xinitrc.d/10-screensaver.sh
new file mode 100755
index 0000000..91c853e
--- /dev/null
+++ b/xinitrc.d/10-screensaver.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# turn off Display Power Management Service (DPMS)
+xset -dpms
+setterm -blank 0 -powerdown 0
+
+# turn off black Screensaver
+xset s off
diff --git a/xinitrc.d/99-wm.sh b/xinitrc.d/99-wm.sh
new file mode 100755
index 0000000..9eb71e2
--- /dev/null
+++ b/xinitrc.d/99-wm.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+
+compton &
+dunst &
+
+exec i3