-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xinitrc
executable file
·52 lines (47 loc) · 1.54 KB
/
.xinitrc
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
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#if [ -d /etc/X11/xinit/xinitrc.d ]; then
# for f in /etc/X11/xinit/xinitrc.d/*; do
# [ -x "$f" ] && . "$f"
# done
# unset f
#fi
is_running() {
ps_out=`ps -ef | grep "$1" | grep -v 'grep' | grep -v $0`
result=$(echo $ps_out | grep "$1")
if [[ "$result" != "" ]];then
return 0
else
return 1
fi
}
if [ systemd-detect-virt = "oracle" ]; then
/usr/bin/VBoxClient-all
fi
RESULT=$(sh "/home/pheonix/.checksession")
if [[ "$RESULT" != "" ]]; then
#xrandr --output DisplayPort-0 --auto --output HDMI-A-0 --primary --left-of DisplayPort-0 &
xrdb -merge "/home/pheonix/.Xresources" &
sh "/home/pheonix/.checkfeh" &
( ! is_running 'compton' ) && compton -b --config "/home/pheonix/.compton.conf" &
#( ! is_running 'conky' ) && conky &
if ( ! is_running "lemonbar" ); then
/home/pheonix/.bin/lemon &
else
killall lemonbar
killall sleep
/home/pheonix/.bin/lemon &
fi
( ! is_running "polkit-gnome-authentication-agent-1" ) && /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
( ! is_running "dunst -config /home/pheonix/.config/dunst/dunstrc" ) && dunst -config "/home/pheonix/.config/dunst/dunstrc" &
( ! is_running "mpd --no-deamon" ) && mpd &
( ! is_running "redshift" ) && redshift &
start-pulseaudio-x11 &
#( ! is_running "nextcloud" ) && nextcloud &
( ! is_running "./insync start" ) && insync start &
( ! is_running "syncthing -no-browser" ) && syncthing -no-browser &
( ! is_running "xfce4-power-manager" ) && xfce4-power-manager &
fi