-
Notifications
You must be signed in to change notification settings - Fork 3
/
init
executable file
·51 lines (36 loc) · 1.02 KB
/
init
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
#!/bin/bash
trap 'jobs -p | xargs kill' EXIT
compton=~/.compton/
dunst=/usr/local/bin/
bspdir=$(dirname $(readlink -f $0))
cd $bspdir
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
# hide mouse on writting
if $(hash unclutter); then
unclutter -idle 1 &
fi
# music daemon
if $(hash mpd); then
mpd &
fi
# gnome settings daemon (for fonts and gtk styling)
gnome-settings-daemon &
# set background
# gsettings set org.gnome.desktop.background picture-uri file:///home/user/Pictures/wallpaper.png
$bspdir/misc/terminal_transparency 6
feh --bg-tile $bspdir/wallpaper.jpg &
# gnome-terminal -e ranger &
cd $HOME &&
gnome-terminal -e ranger &
[[ -e $dunst/dunst ]] \
&& $dunst/dunst -config $bspdir/panels/dunstrc &
# launch compton compositor
[[ -e $compton/compton ]] \
&& $compton/compton --config $bspdir/compton.conf &
# launch dzen2 panels
$bspdir/panels/topbar &
$bspdir/panels/status &
# launch battery checker
$bspdir/misc/battery_alert &
sleep 5 && $bspdir/misc/hide dzen2-bottom-status-bar
wait