summaryrefslogtreecommitdiff
path: root/.config/x11/xinitrc
blob: 70a2e089d40f9d844d9d7427336c2e2cd9389c76 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/BIn/sh

#export XSESSION_PID="$$"

# startup

rm -rf $HOME/.cache/sxiv

# run startup scripts

sh $HOME/.local/bin/remap
sh $HOME/.local/bin/layout
sh $HOME/.local/bin/batalert &
sh $HOME/.local/bin/hosts_update &
#sh /home/user/.local/bin/dbus_session

# setup fcd cache
sh .local/bin/findcache &

# set up themeing black wallpaper

# render with imagemagick
#convert -size 100x100 xc:black /tmp/black.png
convert -size 100x100 xc:gray /tmp/gray.png
# set it to wallpaper
xwallpaper --stretch /tmp/gray.png
# read x resources to set themes
xrdb ~/.config/x11/xresources

# setup mono sound

#pactl unload-module module-remap-sink

# remind of tasks for today

notify-send "Calendar Events for today: " " $(calcurse -a)"

# Play startup sound.

#play -n synth 0:0:1 whitenoise 0.1 10 &

# Start background applications

xautolock -time 10 -locker "slock" &
dunst &
picom --config $HOME/.config/picom/config &
pipewire &
sh /home/user/.local/bin/mono.sh
[ ! -s ~/.config/mpd/pid ] && mpd &
#transmission-daemon &
kdeconnectd &
syncthing -no-browser &

# Launch Window Manager.

xsetroot -name "Loading dwmblocks..."
dwmblocks || xsetroot -name "dwmblocks fail" &
exec dbus-launch --exit-with-session dwm

#jmmaker -vf OpenBox3
#exec openbox

#exec kodi

#play ~/media_files/audio/startup_sounds/white_noise_1sec.mp3 &