.xinitrc

From the Linux and Unix Users Group at Virginia Teck Wiki
Revision as of 07:12, 3 January 2018 by imported>Pew
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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