This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menustartx
startx <path/init file> <window manager>
#!/bin/sh
########################################################################
## Merge in defaults and keymaps ##
########################################################################
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
if [ -f $sysresources ]; then
/usr/bin/xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
/usr/bin/xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
/usr/bin/xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
/usr/bin/xmodmap $usermodmap
fi
########################################################################
## Start fluxbox Desktop Environment ##
########################################################################
#if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
# exec ck-launch-session dbus-launch --exit-with-session /usr/local/bin/startfluxbox
#else
# exec dbus-launch --exit-with-session /usr/local/bin/startfluxbox
#fi
exec dbus-launch --exit-with-session /usr/local/bin/startfluxbox
#!/bin/sh
DEFAULT_SESSION="$HOME/.defaultWM"
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
if [ -f $sysresources ]; then
/usr/bin/xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
/usr/bin/xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
/usr/bin/xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
/usr/bin/xmodmap $usermodmap
fi
case $1 in
fluxbox)
exec dbus-launch --exit-with-session /usr/local/bin/startfluxbox
;;
i3)
exec dbus-launch --exit-with-session /usr/bin/i3
;;
openbox)
exec dbus-launch --exit-with-session /usr/bin/openbox-session
;;
fvwm)
exec dbus-launch --exit-with-session /usr/local/bin/fvwm-session
;;
dwm)
exec dbus-launch --exit-with-session /usr/local/bin/dwm-session
;;
spectrwm)
exec dbus-launch --exit-with-session /usr/local/bin/spectrwm-session
;;
# --- do not edit below this line --
*)
exec $DEFAULT_SESSION
;;
esac
#!/bin/bash
# taken and modified from linuxBBQ cream edition pick-wm file
# kudos to the grillers at linuxbbq.org
VERSION="cream-0.1" # updated for cream
# WMLIST='/usr/bin/wmlist' # name of the wm list file; last entry should be 'POWEROFF'
# README="$HOME/README" # name of the readme file
RELEASE="VSIDO"
# the list of window managers can be read from a file, one line at a time
# alist=($(cat $WMLIST))
# or set here inside the script. either way the last entry should always be POWEROFF
alist=( Fluxbox i3 Fvwm Dwm Spectrwm Openbox Tmux Reboot Poweroff )
let num=${#alist[*]}-1 # number of items in the array (minus one to account for zero index)
tmpfile=$(mktemp) # make a temp file for dialog return value
# make a list in menu format, with a number first, then the name
for i in $(seq 0 $num); do
blist[i]=$(echo $i ${alist[i]})
done
while true; do
# display the list in a dialog, save the return value (the index number) in the tmpfile
dialog --backtitle "$RELEASE" --no-tags --menu 'please choose a window manager' 20 50 50 ${blist[*]} 2>$tmpfile
[[ $? = 1 ]] && exit # user chose "cancel"
chosen=$(<$tmpfile) # get the index from the tmpfile
# index into the WM array to get the name of the WM
wm=${alist[$chosen]}
case $wm in
Fluxbox )
startx "$HOME/.wminitrc" fluxbox
;;
i3 )
startx "$HOME/.wminitrc" i3
;;
Fvwm )
startx "$HOME/.wminitrc" fvwm
;;
Dwm )
startx "$HOME/.wminitrc" dwm
;;
Spectrwm )
startx "$HOME/.wminitrc" spectrwm
;;
Openbox )
startx "$HOME/.wminitrc" openbox
;;
Tmux )
tmux
;;
Reboot )
sudo reboot
;;
Poweroff )
sudo poweroff
;;
* )
xinit $wm
;;
esac
done
# Created by V-Ger for use in the VSIDO env
# ~/.bash_profile: executed by bash(1) for login shells.
# the default umask is set in /etc/login.defs
#umask 022
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# Add $HOME/ items to PATH #
PATH=$PATH:$HOME/bin:$HOME/conky:./
#HISTORY
HISTSIZE=250
HISTFILESIZE=50
export EDITOR=/usr/bin/'nano -w'
#start X at login
##if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
## exec startx
##fi
# ncurses list of wm's
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec "$HOME/.wmselectrc"
fi