Difference between revisions of ".xinitrc"

From the Linux and Unix Users Group at Virginia Teck Wiki
Jump to: navigation, search
imported>Pew
 
imported>Pew
(Replaced content with "Category:Pending deletion")
Line 1: Line 1:
TODO: Move to software page and remove specific member config
+
[[Category:Pending deletion]]
 
 
=Cov's .xinitrc=
 
 
 
<pre>
 
#!/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
 
</pre>
 
 
 
=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>.
 
 
 
<pre>
 
#!/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
 
</pre>
 
 
 
[[Category:Configuration files]]
 
[[Category:Desktop *nix]]
 
[[Category:Move to Uniluug]]
 
[[Category:Needs restoration]]
 

Revision as of 02:51, 4 January 2018