summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorivan-boikov <ik.boikov.public@protonmail.com>2022-07-15 00:34:21 +0200
committerivan-boikov <ik.boikov.public@protonmail.com>2022-07-15 00:34:21 +0200
commit6e0560768812c5c67d754c574b3c500b0259bd20 (patch)
treef9bf0328de8e052c90059395600624d93977703e /x11
parent12ad6ff819ec7fa338bddde332e44124e7375f2b (diff)
1
Diffstat (limited to 'x11')
-rw-r--r--x11/.config/x11/xprofile34
1 files changed, 19 insertions, 15 deletions
diff --git a/x11/.config/x11/xprofile b/x11/.config/x11/xprofile
index da3bf16..ec25ab3 100644
--- a/x11/.config/x11/xprofile
+++ b/x11/.config/x11/xprofile
@@ -3,6 +3,17 @@
# This file runs when a DM logs you into a graphical session.
# If you use startx/xinit like a Chad, this file will also be sourced.
+
+# generate .Xresources
+$HOME/.local/bin/genxresources > $HOME/.Xresources
+
+# generate zathura config with colors from .Xresources
+mkdir -pv $HOME/.config/zathura && $HOME/.local/bin/genzathurarc > $HOME/.config/zathura/zathurarc
+
+# and dunst too
+mkdir -pv $HOME/.config/dunst && $HOME/.local/bin/gendunstrc > $HOME/.config/dunst/dunstrc
+
+
autostart=(
"xrdb $HOME/.Xresources"
"$HOME/.local/bin/setbg"
@@ -14,24 +25,17 @@ autostart=(
"gentoo-pipewire-launcher"
"syncthing --no-browser"
"dwmblocks"
- "redshift -l40:2")
+ "redshift -l40:2"
+)
- for program in "${autostart[@]}" ; do
- pidof -s "${program%% *}" || setsid -f $program
- done >$XDG_CACHE_HOME/xprofile.errors 2>&1
+for program in "${autostart[@]}" ; do
+ pidof -s "${program%% *}" || setsid -f $program
+done >$XDG_CACHE_HOME/xprofile.errors 2>&1
- if [ -x /usr/bin/gpg-agent ]; then
- eval "$(/usr/bin/gpg-agent --daemon)"
- fi
+if [ -x /usr/bin/gpg-agent ]; then
+ eval "$(/usr/bin/gpg-agent --daemon)"
+fi
-# generate .Xresources
-$HOME/.local/bin/genxresources > $HOME/.Xresources
-
-# generate zathura config with colors from .Xresources
-mkdir -pv $HOME/.config/zathura && $HOME/.local/bin/genzathurarc > $HOME/.config/zathura/zathurarc
-
-# and dunst too
-mkdir -pv $HOME/.config/dunst && $HOME/.local/bin/gendunstrc > $HOME/.config/dunst/dunstrc
# Ensure that xrdb has finished running before moving on to start the WM/DE.
[ -n "$xrdbpid" ] && wait "$xrdbpid"