-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxinitrc
executable file
·101 lines (89 loc) · 2.59 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
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
##################################
#
# Author: Gustavo Yokoyama Ribeiro
# File: .xinitrc
# Update: 20100115 16:07:31
# (C) Copyright 2010 Gustavo Yokoyama Ribeiro
# Licensed under CreativeCommons Attribution-ShareAlike 3.0 Unsupported
# http://creativecommons.org/licenses/by-sa/3.0/ for more info.
#
##################################
# Appending proggy font dir to font path
#if xset q > /dev/null 2>&1; then
# [ -z $(xset q | grep "/home/gyr/.gyr.d/dotfiles/xfonts") ] && xset fp+ ${HOME}/.gyr.d/dotfiles/xfonts
#fi
# Applying X config
xrdb -merge ${HOME}/.gyr.d/dotfiles/Xdefaults && xrdb -load ${HOME}/.gyr.d/dotfiles/Xdefaults
# Set keyboard layout to US international (altgr key)
setxkbmap -layout us -variant altgr-intl
# Natural scroll (Disable caps_lock can be done here but setxkbmap described
# bellow is better)
xmodmap ${HOME}/.gyr.d/dotfiles/xmodmaprc
# OR
# Replace caps_lock to ESC
#setxkbmap -option caps:escape
# Replace caps_lock to CTRL-L
setxkbmap -option ctrl:nocaps
# Enable CTRL+ALT+BCKSPACE kill X
setxkbmap -option terminate:ctrl_alt_bksp
# Disable bell
xset b off
# or
#setterm -bfreq 0
# Set bind keys
xbindkeys
# Dual key config
xcape -e 'Control_L=Escape'
# Awesome WM
# Fix Java (GUI appears gray only)
#wmname LG3D
#exit 0
# ONLY FOR XINITRC
# Disable lines below if session manager is been using!
#
#STARTUP="/usr/bin/startxfce4"
STARTUP="/usr/bin/awesome"
#
#case $1 in
# xfce4)
# STARTUP="/usr/bin/startxfce4"
# ;;
# e17)
# STARTUP="/usr/bin/enlightenment_start"
# ;;
# awesome)
# STARTUP="/usr/bin/awesome"
# ;;
# *)
# STARTUP="/usr/bin/awesome"
# ;;
#esac
## test for an existing bus daemon, just to be safe
#if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
# # if not found, launch a new one
# STARTUP="/usr/bin/dbus-launch --sh-syntax --exit-with-session ${STARTUP}"
#fi
#
## Start gpg-agent
#killall gpg-agent
##gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info"
#
## Start ssh-agent
#killall ssh-agent
##STARTUP="/usr/bin/ssh-agent ${STARTUP}"
#
## Window Manager
#exec ck-launch-session ${STARTUP}
#ck-launch-session awesome
OPTIONFILE=/etc/X11/Xsession.options
. /etc/X11/Xsession.d/20x11-common_process-args
. /etc/X11/Xsession.d/35x11-common_xhost-local
. /etc/X11/Xsession.d/55awesome-javaworkaround
. /etc/X11/Xsession.d/60xdg-user-dirs-update
. /etc/X11/Xsession.d/75dbus_dbus-launch
. /etc/X11/Xsession.d/90consolekit
. /etc/X11/Xsession.d/90gpg-agent
. /etc/X11/Xsession.d/90qt-a11y
. /etc/X11/Xsession.d/90x11-common_ssh-agent
. /etc/X11/Xsession.d/99x11-common_start