-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xinitrc
90 lines (63 loc) · 2.08 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/sh
#some defaults files are not present
#in arch linux by defaults
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
userresources="$HOME/.Xresources"
usermodmap="$HOME/.Xmodmap"
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
#hack: wait until xfce starts
{ sleep 20; xmodmap "$usermodmap" ;} &
fi
#xmodmap and xfce4 may not well together.
#culprit may be panel plugin xfce4-xkb-plugin
#https://unix.stackexchange.com/questions/119994/xmodmap-configuration-get-resetted-after-some-time
#https://lists.debian.org/debian-user/2011/04/msg01875.html
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
#start picom (fork of compton)
picom --dbus -b
#import env to systemd
##systemctl --user import-environment DISPLAY XAUTHORITY
#!#systemd should import xorg env automatically
#manual hook to be able to run services at login
#systemctl --no-block --user xsession.target
#https://superuser.com/questions/759759/writing-a-service-that-depends-on-xorg
#start systemd services
#systemctl --user conkies.service
#nvidia driver
#xrandr --setprovideroutputsource modesetting NVIDIA-0
#xrandr --auto
#load key binding
xbindkeys
#start conky service
##systemctl --user start conky.service &
#oneko -tora & oneko -tomoyo &
#start xfce4
exec startxfce4
#if you want to run Xfce4 from .xinitrc, only use »startxfce4 --with-ck-
#launch« (only on non-systemd systems). »startxfce4« itself starts dbus
#and (if advised and not already running) consolkit in a proper way.
#»ck-launch-session dbus-launch …« tend to break session stuff and is wrong.
#http://xfce.10915.n7.nabble.com/startxfce4-and-ck-launch-td50149.html
#start tim wm
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login