-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xinitrc
51 lines (40 loc) · 1.1 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
#!/bin/bash
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
sto=4200
xset s $sto
xset dpms $sto $sto $sto
#xmodmap -pke > ~/xmodmap_original
#xmodmap ~/xmodmap_original
##########################
#setxkbmap -option terminate:ctrl_alt_bksp
#setxkbmap -option caps:none
setxkbmap -option caps:hyper
#localectl list-keymaps
#loadkeys <keymap>
##########################
#Reset
#setxkbmap -layout us ; setxkbmap us ; localectl set-keymap us
##########################
#xmodmap ~/.Xmodmap
xrdb ~/.Xresources
/usr/bin/xsettingsd &
$HOME/Scripts/pillar/session/logs-dir.sh
$HOME/Scripts/pillar/session/session_base.sh 2>&1 >> /tmp/logs/session.log &
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
session=${1:-ctwm}
case $session in
ctwm) exec $HOME/Scripts/pillar/launchers/ctwm.sh >>/tmp/logs/ctwm.log 2>&1 ;;
# No known session, try to run it as command
*) exec $1 ;;
esac
# If the WM fails completely we either try to catch a shell or just ditch correctly.
#$HOME/Scripts/$HOSTNAME/session/close.sh logout
$SHELL