summaryrefslogtreecommitdiff
path: root/xinit/Scripts/xlaunchrc
blob: e875613805f23633c920ddb6a3cdece3231945d5 (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
#!/usr/bin/env bash

set -e

setxkbmap -layout us -variant altgr-intl

export _JAVA_AWT_WM_NONREPARENTING=1
export TERM=termite
export TERMINAL=termite

export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh

xmodmap .Xmodmap
#xcape -e "Control_R=Escape"

nm-applet &

# set wallpaper
~/Scripts/setwall -A

dunst &
play ~/Winsounds/login.wav -q &

# Set dbus display variable
dbus-update-activation-environment --systemd DISPLAY

for arg in "$LOPTS"
do
    case $arg in
        *"panel"*)
            echo starting panel
            xfce4-panel &
            ;;
        *"composer"*)
            echo starting comp
            xcompmgr &
            ;;
        *"gnome-keyring"*)
            dbus-update-activation-environment --systemd DISPLAY &
            eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets) &
            ;;
        *"screensaver"*)
            xscreensaver &
            xss-lock -- xscreensaver-command --lock &
            ;;
        *"autorandr"*)
            autorandr -c
            ;;
        *"autorun"*)
            ~/.xautorun
            ;;
    esac
done


# Please do not block