Difference between revisions of ".xinitrc"

From the Linux and Unix Users Group at Virginia Teck Wiki
Jump to: navigation, search
imported>Pew
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
TODO: Move to software page and remove specific member config
+
From [https://wiki.archlinux.org/index.php/Xinit ArchWiki], The xinit program allows a user to manually start an Xorg display server. The startx(1) script is a front-end for xinit(1).
  
 
=Cov's .xinitrc=
 
=Cov's .xinitrc=
Line 76: Line 76:
 
</pre>
 
</pre>
  
[[Category:Configuration files]]
+
=pew's .xinitrc=
[[Category:Desktop *nix]]
+
<pre>
[[Category:Move to Uniluug]]
+
#!/bin/sh
[[Category:Needs restoration]]
+
 
 +
[ -f ~/.Xresources ] && xrdb -merge .Xresources
 +
xsetroot -cursor_name left_ptr
 +
 
 +
xbindkeys
 +
xmodmap ~/.Xmodmap
 +
#nm-applet &
 +
#discord &
 +
#slack &
 +
compton &
 +
exec i3
 +
</pre>
 +
 
 +
[[Category:Software]]
 +
[[Category:Howtos]]
 +
[[Category:Scripts]]

Latest revision as of 02:32, 4 January 2019

From ArchWiki, The xinit program allows a user to manually start an Xorg display server. The startx(1) script is a front-end for xinit(1).

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

pew's .xinitrc

#!/bin/sh

[ -f ~/.Xresources ] && xrdb -merge .Xresources
xsetroot -cursor_name left_ptr

xbindkeys
xmodmap ~/.Xmodmap
#nm-applet &
#discord &
#slack &
compton &
exec i3