Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # ~/.xinitrc
- #
- # Executed by startx (run your window manager from here)
- # Rehash the Xresources file. This is done just to be sure.
- xrdb -merge ~/.Xresources
- # For the fonts. Same as above.
- xset +fp /usr/share/fonts/local
- xset fp rehash
- # Set numlock on
- numlockx &
- # Set a default session here, see master case switch for
- # available choices, or roll your own!
- #DEFAULT_SESSION=xfce4
- # Slim will pass us the session name as set in /etc/slim.conf and chosen on login.
- # If nothing is picked, assume we will be using the default for ourselves.
- #if [[ -z "$!" ]]; then
- # $1=$DEFAULT_SESSION
- #fi
- ###
- # We'll be defining functions here to use as hooks to launch our
- # different desktop environments. This allows flexibility in launching
- # the chosen enviroment, as well as readability below.
- ###
- # Universal setup function for tiling wm's
- setupTilingWM() {
- hsetroot -center /home/kofrad/endeavour-finalmission-1280.png
- unclutter -jitter 10 &
- xscreensaver -nosplash &
- nm-applet &
- xfce4-clipman &
- redshift -l 26.007:-80.27 -t 6500:5900 &
- wmname LG3D &
- }
- # XMonad
- launchXmonad() {
- xsetroot -cursor_name left_ptr &
- trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 7 --transparent true --tint 0x000000 --height 18 &
- setupTilingWM
- keepassx &
- exec ck-launch-session xmonad
- }
- # Fluxbox
- launchFluxbox() {
- # Keeping it simple here.
- # All startup programs are called by ~/.fluxbox/startup
- exec ck-launch-session startfluxbox
- }
- # Wmii
- launchWmii() {
- setupTilingWM
- exec ck-launch-session wmii
- }
- ###
- # Here is the actual switch statement to execute our
- # chosen desktop environment.
- ###
- case $1 in
- fluxbox)
- launchFluxbox
- ;;
- xmonad)
- launchXmonad
- ;;
- wmii)
- launchWmii
- ;;
- xfce4)
- exec ck-launch-session startxfce4
- ;;
- *)
- launchXmonad
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement