diff options
-rw-r--r-- | .xinitrc | 32 | ||||
-rwxr-xr-x | xinitrc.d/00-misc.sh | 5 | ||||
-rwxr-xr-x | xinitrc.d/10-background.sh | 12 | ||||
-rwxr-xr-x | xinitrc.d/10-screensaver.sh | 8 | ||||
-rwxr-xr-x | xinitrc.d/99-wm.sh | 7 |
5 files changed, 38 insertions, 26 deletions
@@ -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 |