Open main menu

Linux and Unix Users Group at Virginia Teck Wiki β

.xinitrc

Revision as of 20:33, 3 January 2019 by Pew (talk | contribs) (Undo revision 1135 by [[Special:Contributions/imported>Pew|imported>Pew]] ([[User talk:imported>Pew|talk]]))

TODO: Move to software page and remove specific member config

Cov's .xinitrc

#!/bin/sh

# start the window manager
evilwm -snap 10 -term terminal -fn terminus -fg white -bg black -fc green -app xclock -g 197x30+1081+0 -s &
#awesome
#startkde

# use a nice cursor
xsetroot -cursor_name left_ptr &

# put up a pretty background picture
feh --bg-scale ~/.background

# display a clock
xclock -digital -update 1 -face terminus -bg black -fg green -strftime '%a %F %k:%M:%S' &

# create a menu bar
wbar -vbar -pos left &

# don't stop [believing]
exec sleep infinity

Ackthets .xinitrc

(thanks to hackedhead for this one)

This .xinitrc allows you to run different WM's using the same .xinitrc. Just do xinit <WM name>.

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
###############################################################################
# global options go here
xrdb /home/wsduvall/.Xdefaults
xscreensaver -no-splash &
feh --bg-scale /home/wsduvall/halloween*

session_default=xmonad

# Allow specifying a session when starting with startx
session=$1
test -z "$session" && session=$session_default

case $session in
        "dwm")
                # dwm specific options go here
		xsetroot -cursor_name left_ptr
		unclutter&
		conky | while true; read line; do xsetroot -name "$line"; done &
                exec dwm;;
        "awesome")
                exec awesome;;
	"openbox")
        	exec openbox-session;;
	"xmonad")
		xmobar &
		xsetroot -cursor_name left_ptr
                # program that hides mouse when idle
		unclutter&
		exec xmonad;;
esac