summaryrefslogtreecommitdiff
path: root/x11/.config
diff options
context:
space:
mode:
authorivan-boikov <ik.boikov.public@protonmail.com>2022-07-14 23:51:06 +0200
committerivan-boikov <ik.boikov.public@protonmail.com>2022-07-14 23:51:06 +0200
commit47eb75b4250badd24b3137f77bf237e6f0570b15 (patch)
tree3ea591e70b3e5f6e9a4dd7005904d9226f1b6891 /x11/.config
parent919fe5982b47278ef34a30d3b08af41e1ddd1b11 (diff)
1
Diffstat (limited to 'x11/.config')
-rw-r--r--x11/.config/x11/xprofile48
1 files changed, 26 insertions, 22 deletions
diff --git a/x11/.config/x11/xprofile b/x11/.config/x11/xprofile
index a746216..da3bf16 100644
--- a/x11/.config/x11/xprofile
+++ b/x11/.config/x11/xprofile
@@ -1,33 +1,37 @@
-#!/bin/sh
+#!/bin/bash
# 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.
- "xrdb ${XDG_CACHE_HOME:-$HOME/.cache}/wal/colors.Xresources"
autostart=(
- "xrandr --dpi 96"
- "xrdb $HOME/.Xresources"
- "$HOME/.local/bin/setbg"
- "$HOME/.local/bin/remaps"
- "picom"
- "mpd"
- "dunst"
- "unclutter"
- "dwmblocks"
- "gentoo-pipewire-launcher"
- "syncthing --no-browser"
- "redshift -l40:2")
-
-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
+ "xrdb $HOME/.Xresources"
+ "$HOME/.local/bin/setbg"
+ "$HOME/.local/bin/remaps"
+ "xcompmgr"
+ "mpd"
+ "dunst"
+ "unclutter"
+ "gentoo-pipewire-launcher"
+ "syncthing --no-browser"
+ "dwmblocks"
+ "redshift -l40:2")
+
+ 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
+
+# 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"