add/remove a session
if you want to add/remove “manually” a session, you have to install/uninstall packages and configurations directories then add/delete specific entries in the session-selector.
note that livarp wms are very light and don't take so much space in your system.
note: if you want a single-session-livarp (aka livarp-xs), livarp includes the livarp-xs-maker script available from all menus. this script delete all files and binaries from unneeded sessions..
- to remove a session from session-selector, edit it as root:
vim /usr/local/bin/session_selector.sh
- then delete the concerned lines in the “ACTION” section.
- to add a session, edit the session-selector as above then add your session in the “ACTION” section and be sure to launch it from the “session launchers” section. here is an example with OpenBox:
#! /bin/bash
# simple session-selector
# launch it from ~/.xinitrc
# delete/add a section to remove/add a session
# --------------------------------------------
# set username
# ------------
HUMAN=`w -h | tail -n1 | awk '{print $1}'`
# configure dialog window
# -----------------------
ACTION=`zenity --width=315 --height=335 --list\
--title "Select your Wm" --text "Welcome to Livarp_0.3.2 $HUMAN \n pick or edit a session -->>"\
--column "sessions" --column " what?"\
"wmfs" "window manager from scratch v2"\
"dwm" "the dynamic window manager reloaded"\
"echinus" "the easy tiling"\
"evilwm" "they sold their soul to X"\
"pekwm" "the only one"\
"fluxbox" "the famous one"\
"compiz" "standalone session (testing)"\
"openbox" "The *Box"\
"" ""\
"edit" "configure startup scripts"\
"" ""\
"reboot" "restart your computer"\
"halt" "shutdown your computer"`
# session launchers
# -----------------
if [ -n "${ACTION}" ]; then
case $ACTION in
dwm)
exec ck-launch-session $HOME/bin/start/dwm_start.sh
;;
echinus)
exec ck-launch-session $HOME/bin/start/echinus_start.sh
;;
evilwm)
exec ck-launch-session $HOME/bin/start/evil_start.sh
;;
wmfs)
exec ck-launch-session $HOME/bin/start/wmfs_start.sh
;;
pekwm)
exec ck-launch-session $HOME/bin/start/pekwm_start.sh
;;
fluxbox)
exec ck-launch-session $HOME/bin/start/fluxbox_start.sh
;;
compiz)
exec ck-launch-session $HOME/bin/start/compiz_start.sh
;;
openbox)
exec ck-launch-session /usr/bin/openbox-session
;;
edit)
geany -s $HOME/bin/start/*_start.sh
session_selector.sh
;;
reboot)
sudo shutdown -r now
;;
halt)
sudo shutdown -h now
;;
esac
fi
then configure your openbox session from ~/.config/openbox/autostart.sh.