summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorivan-boikov <ik.boikov.public@protonmail.com>2022-05-22 22:32:07 +0200
committerivan-boikov <ik.boikov.public@protonmail.com>2022-05-22 22:32:07 +0200
commit128ae72e6b0ff6ab70b4c54938a5354218c58abc (patch)
tree31f579c9e67112151acca65ca835b50d181a56a7 /x11
parentf7498cf11733a375e2a70e5139659d10036faf0c (diff)
xprofile and others
Diffstat (limited to 'x11')
-rw-r--r--[-rwxr-xr-x]x11/.config/x11/xinitrc0
-rw-r--r--x11/.config/x11/xprofile27
-rwxr-xr-xx11/.xinitrc19
3 files changed, 21 insertions, 25 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"
diff --git a/x11/.xinitrc b/x11/.xinitrc
index 1256d66..9502100 100755
--- a/x11/.xinitrc
+++ b/x11/.xinitrc
@@ -9,24 +9,9 @@
# I source them here with the line below.
if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
- . "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile"
+ . "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile"
else
- . "$HOME/.xprofile"
+ . "$HOME/.xprofile"
fi
-compton &
-# delay thunderbird to allow protonmail initialize and avoid thunderbirds' "no connection to 127.0.0.1"
-protonmail-bridge --no-window & ( sleep 5 && thunderbird & )
-signal-desktop &
-telegram-desktop &
-redshift -l40:2 &
-syncthing &
-xfce4-power-manager &
-$HOME/.local/bin/remaps &
-setbg &
-
-dwmblocks &
-
-xrdb -merge ~/.Xresources
-
ssh-agent /usr/bin/dwm