-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xprofile
executable file
·46 lines (38 loc) · 1.4 KB
/
.xprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
# Description: Runs on X11 DM login, also sourced by my xinitrc on `startx`.
# Autostart programs are set here.
# This file runs when a DM logs you into a graphical session.
# If you use startx/xinit, this file will also be sourced.
# If .zprofile wasn't sourced, source it.
[ -z "$XDG_CONFIG_HOME" ] && . "$HOME/.zprofile"
# https://wiki.archlinux.org/title/GNOME/Keyring#Launching_gnome-keyring-daemon_outside_desktop_environments_(KDE,_GNOME,_XFCE,_...)
# dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY
# dbus-update-activation-environment --all
# Run startup scripts.
xrdb "$XDG_CONFIG_HOME/x11/xresources" # & xrdbpid=$!
layout # set the layout & background of the screen
remaps # run the remaps script (switching caps/esc)
# gammastep-indicator
# emacs --daemon
# Autostart programs.
# https://www.shellcheck.net/wiki/SC3030
# -t tty"$XDG_VTNR" to match only on current tty
autostart="syncthing --no-browser
picom
playerctld
lxpolkit
unclutter
gammastep.sh
sxhkd
dunst
"
printf "%s" "$autostart" | while IFS="" read -r program; do
pgrep -fl "$program" || $program &
done # >/dev/null 2>&1
# As a bash array.
# startup=("list programs" "to" "run here")
# for program in "${startup[@]}"; do
# pgrep -fl "$program" || $program &
# done >/dev/null 2>&1
## Ensure that xrdb has finished.
# [ -n "$xrdbpid" ] && wait "$xrdbpid"