-
Notifications
You must be signed in to change notification settings - Fork 1
/
.xsession
executable file
·48 lines (40 loc) · 1.63 KB
/
.xsession
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
#!/bin/sh
export XCURSOR_THEME=Obsidian
export XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
export QT_PLUGIN_PATH=$HOME/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/
export QT_GRAPHICSSYSTEM=raster
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
# for Gtk+ theme
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
#export GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:$HOME/.gtkrc-2.0::$HOME/.kde/share/config/gtkrc-2.0
# english interface
export LC_MESSAGES=en_US.UTF-8
export LC_NUMERIC=en_US.UTF-8
xrdb -load ~/.Xresources
# sh ~/.jackdrc 2>/dev/null &
#test -f ~/.wallpaper \
# && feh --no-xinerama --bg-scale ~/.wallpaper \
# || xsetroot -solid black
feh --no-xinerama --bg-scale ~/.wallpaper &
pgrep yeahconsole >>/dev/null || yeahconsole &
# keyboard
# experimental layout
if lsusb | grep -q "045e:00db"
then
setxkbmap us -option; setxkbmap us+typo+"modifiers(menu_switch_multikey)",rup -option "ctrl:nocaps,shift:both_capslock,grp:toggle,nbsp:level4" -print | egrep -v "group . = AltGr;" | xkbcomp -I"$HOME/.xkb" - "$DISPLAY"
else
setxkbmap us -option; setxkbmap us+typo+"modifiers(rctl_switch_multikey)+c720(swapwin)+c720(fn_keys)+c720(editing)",rup -option "shift:both_capslock,grp:toggle,nbsp:level4" -print | egrep -v "group . = AltGr;" | xkbcomp -I"$HOME/.xkb" - "$DISPLAY"
fi
# remap some keys
xbindkeys
# nice beep
xset b 40 8000 15
#
`which laptop-detect` && {
synclient RightEdge=800
# pgrep batcontrol.sh >>/dev/null || ~/bin/batcontrol.sh &
}
lxpanelx --colormap system &
#lxpanel &
#lxqt-panel &
test -z $_LXSESSION_PID && $HOME/bin/stumpwm