Skip to content

Instantly share code, notes, and snippets.

@wavebeem
Created January 28, 2011 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavebeem/799676 to your computer and use it in GitHub Desktop.
Save wavebeem/799676 to your computer and use it in GitHub Desktop.
# vim: syn=sh:
#
# Sleep before doing a command
SleepDo() {
local time="$1"
shift
sleep "$time"
eval "$@"
}
# Programs to help flesh out a window manager
Autostart() {
nitrogen --restore &
xscreensaver -no-splash &
wmname LG3D &
}
# Enable Japanese input
export XMODIFIERS="@im=ibus"
export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="ibus"
ibus-daemon &
# Enable compose key
setxkbmap us \
-variant altgr-intl \
-option nodeadkeys \
-option compose:ralt \
-option compose:caps
# Load font and cursor settings
xrdb ~/.Xdefaults
# Remove bell
xset -b
# Remove screen blanking
xset -dpms
# Set cursor type on root window (avoid X-shape)
xsetroot -cursor_name left_ptr &
# Load additional xinitrc files like GDM
source /etc/X11/xinit/xinitrc.d/* &
# Load keybindings
xbindkeys &
# Load graphics settings
SleepDo 1 nvidia-settings -l &
# Preload thunar for very slight speed increases
thunar --daemon &
# Launch a window manager with proper permissions
# and ssh-agent support
Start() {
exec ck-launch-session "$@"
}
Autostart &
# Start startkde
# Start wmii
Start wmfs
# Start start-euclid
# Start i3
# Start openbox-session
# Start xfwm4
# Start startxfce4
# Start gnome-session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment