From 33ede38c48082c6b3b32947311fa70da0d78499c Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 28 Jun 2020 19:00:04 +0200 Subject: xinitrc.d added --- .xinitrc | 32 ++++++-------------------------- xinitrc.d/00-misc.sh | 5 +++++ xinitrc.d/10-background.sh | 12 ++++++++++++ xinitrc.d/10-screensaver.sh | 8 ++++++++ xinitrc.d/99-wm.sh | 7 +++++++ 5 files changed, 38 insertions(+), 26 deletions(-) create mode 100755 xinitrc.d/00-misc.sh create mode 100755 xinitrc.d/10-background.sh create mode 100755 xinitrc.d/10-screensaver.sh create mode 100755 xinitrc.d/99-wm.sh 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 -- cgit v1.2.3