-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdwm-run
executable file
·63 lines (49 loc) · 2.01 KB
/
dwm-run
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
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
test -f $sysresources && xrdb -merge $sysresources
test -f $sysmodmap && xmodmap $sysmodmap
test -f "$userresources" && xrdb -merge "$userresources"
test -f "$usermodmap" && xmodmap "$usermodmap"
# start some nice programs
test $(which gpg-agent) && eval $(gpg-agent --daemon)
# Fix Gnome Apps Slow Start due to failing services
# Add this when you include flatpak in your system
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
# gnome-keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
xset r rate 300 50 & # Speed xrate up
setxkbmap -option caps:escape # run the remaps script, switching caps/esc and more; check it for more info
# mpd & # music player daemon-you might prefer it as a service though
feh --bg-center ~/.local/share/wall.jpg & # set the background with the `setbg` script
xcompmgr & # xcompmgr for transparency
dunst & # dunst for notifications
# redshift -c $HOME/.config/redshift/redshift.conf &
dwmblocks &
# third-party apps
if [ $(which udisksctl) ]; then
if [ $(which udiskie) ]; then
udiskie -ANt &
fi
fi
# third-party apps
if [ $(which dropbox) ]; then
dropbox & # dropbox, cloud storage
fi
# source machine- and uname-specific xinitrcs
xinitcfg="$HOME/.config/xinit"
test -f "$xinitcfg/u/$(uname)" && . "$xinitcfg/u/$(uname)"
test -f "$xinitcfg/host/$(hostname)" && . "$xinitcfg/host/$(hostname)"
ssh-agent dwm 2>>/tmp/dwm_log || break
# exit X when dwmblocks (or failsafe xterm) is killed
if [ $(which dwmblocks) ]; then
dwmblocks
elif [ $(which st) ]; then
st
elif [ $(which xterm) ]; then
xterm -ls -T Failsafe -geometry 80x24-0-0
fi