summaryrefslogtreecommitdiff
path: root/ar/.config/x11/xprofile
blob: bbdb04fb8438aaf1155d52608e96725481caad39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

sleep 3
xrandr --dpi 96 # adjust the number based on your resolution and size of the screen
setmonitor

setbg & # set the background with the `setbg` script
# fcitx5 & # set the input method

# Uncomment to use Xresources colors/settings on startup
# xrdb "${XDG_CONFIG_HOME:-${HOME}/.config}/x11/xresources" &
# xrdbpid=$!

autostart="mpd xcompmgr dunst unclutter pipewire blueman-applet remapd clipmenud"

for program in $autostart; do
  pidof -sx "$program" || "$program" &
done >/dev/null 2>&1

# Ensure that xrdb has finished running before moving on to start the WM/DE.
[ -n "$xrdbpid" ] && wait "$xrdbpid"