Open main menu

Linux and Unix Users Group at Virginia Teck Wiki β

Changes

.xinitrc

2,085 bytes added, 02:32, 4 January 2019
no edit summary
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= <pre>#!/bin/sh # start the window managerevilwm -snap 10 -term terminal -fn terminus -fg white -bg black -fc green -app xclock -g 197x30+1081+0 -s &#awesome#startkde # use a nice cursorxsetroot -cursor_name left_ptr & # put up a pretty background picturefeh --bg-scale ~/.background # display a clockxclock -digital -update 1 -face terminus -bg black -fg green -strftime '%a %F %k:%M:%S' & # create a menu barwbar -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 herexrdb /home/wsduvall/.Xdefaultsxscreensaver -no-splash &feh --bg-scale /home/wsduvall/halloween* session_default=xmonad # Allow specifying a session when starting with startxsession=$1test -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> =pew's .xinitrc=<pre>#!/bin/sh [ -f ~/.Xresources ] && xrdb -merge .Xresourcesxsetroot -cursor_name left_ptr xbindkeysxmodmap ~/.Xmodmap#nm-applet &#discord &#slack &compton &exec i3</pre> [[Category:Software]][[Category:Howtos]][[Category:Pending deletionScripts]]