aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2020-05-15 22:33:01 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2020-05-15 22:33:01 +0200
commit7d68d0c122cd1a2b988f7732945f55b8d251a5e5 (patch)
tree8face953082c8ca2d59f3dfa6e324fbe3c7e0239
parent6085c2475e6d27c6eba373068b7b9a23787191c7 (diff)
downloadscripts-7d68d0c122cd1a2b988f7732945f55b8d251a5e5.tar.gz
scripts-7d68d0c122cd1a2b988f7732945f55b8d251a5e5.zip
Cleaned xinit.sh and added checks for already running programs.
-rwxr-xr-xxinit.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/xinit.sh b/xinit.sh
index 534700b..6048726 100755
--- a/xinit.sh
+++ b/xinit.sh
@@ -2,15 +2,12 @@
# To be run by the window manager or desktop environment when starting an X session
xrdb ~/.Xresources
-picom -b
-dunst &
-#feh --bg-max ~/images/wallpapers/bg_*
+pgrep -x picom || picom -b
+pgrep -x dunst || dunst &
setRandomBG.sh
setxkbmap -layout es -option caps:swapescape
xset -b
-unclutter --idle 1 &
+pgrep -x unclutter || unclutter --idle 1 &
#touchpad.sh
urxvt -e tmux new -s main &
-#optimus-manager-qt &
pgrep -x sxhkd || sxhkd >~/logs/sxhkd.log &
-