diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-05-22 22:32:07 +0200 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-05-22 22:32:07 +0200 |
| commit | 128ae72e6b0ff6ab70b4c54938a5354218c58abc (patch) | |
| tree | 31f579c9e67112151acca65ca835b50d181a56a7 /x11/.config | |
| parent | f7498cf11733a375e2a70e5139659d10036faf0c (diff) | |
xprofile and others
Diffstat (limited to 'x11/.config')
| -rw-r--r--[-rwxr-xr-x] | x11/.config/x11/xinitrc | 0 | ||||
| -rw-r--r-- | x11/.config/x11/xprofile | 27 |
2 files changed, 19 insertions, 8 deletions
diff --git a/x11/.config/x11/xinitrc b/x11/.config/x11/xinitrc index 5fa14ab..5fa14ab 100755..100644 --- a/x11/.config/x11/xinitrc +++ b/x11/.config/x11/xinitrc diff --git a/x11/.config/x11/xprofile b/x11/.config/x11/xprofile index 2d7d1c6..b5169ad 100644 --- a/x11/.config/x11/xprofile +++ b/x11/.config/x11/xprofile @@ -3,16 +3,27 @@ # 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. -xrandr --dpi 96 # Set DPI. User may want to use a larger number for larger screens. -setbg & # set the background with the `setbg` script -#xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & # Uncomment to use Xresources colors/settings on startup -remaps & # setting keyboard layout and more; check it for more info +autostart=( + "xrandr --dpi 96" + "xrdb ${XDG_CACHE_HOME:-$HOME/.cache}/wal/colors.Xresources" + "$HOME/.local/bin/setbg" + "$HOME/.local/bin/remaps" + "picom" + "mpd" + "dunst" + "unclutter" + "dwmblocks" + "gentoo-pipewire-launcher" + "syncthing --no-browser" + "redshift -l40:2") -autostart="mpd dunst unclutter pulseaudio" +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 >/dev/null 2>&1 +if [ -x /usr/bin/gpg-agent ]; then + eval "$(/usr/bin/gpg-agent --daemon)" +fi # Ensure that xrdb has finished running before moving on to start the WM/DE. [ -n "$xrdbpid" ] && wait "$xrdbpid" |
