I have dwm & fluxbox. How can I make .xinitrc to ask me witch one I want to choose?
case $1 in
fluxbox)
# fluxbox specific stuff &
exec ck-launch-session fluxbox
;;
dwm)
# dwm specific stuff &
exec ck-launch-session dwm
;;
*)
# a default wm in here
;;
esac
if [[ $1 == "fluxbox" ]]
then
exec startfluxbox
elif [[ $1 == "dwm" ]]
then
exec dwm
else
echo "Choose a window manager"
fi
#fbsetroot -solid black
#exec conky &
#exec ipager &
#exec fluxbox
while true;
do
xsetroot -name ["$(date +"%a %b %d %r")"]
sleep 1s
fbsetbg -f /home/emberdaemon/Downloads/37826-black-rock-shooter-hatsune-miku-tagme-vocaloid.jpg
done &
#exec conky &
exec dwm
Code:if [[ $1 == "fluxbox" ]] then exec startfluxbox elif [[ $1 == "dwm" ]] then exec dwm else echo "Choose a window manager" fi
case ${1} in
(fluxbox) startfluxbox ;;
(dwm) dwm ;;
(*) echo "Choose a window manager" ;;
esac
Why You are setting the same wallpaper every 1 second?Code:while true; do xsetroot -name ["$(date +"%a %b %d %r")"] sleep 1s fbsetbg -f /home/emberdaemon/Downloads/37826-black-rock-shooter-hatsune-miku-tagme-vocaloid.jpg done &
fbsetbg -f /home/emberdaemon/Downloads/37826-black-rock-shooter-hatsune-miku-tagme-vocaloid.jpg
exec dwm
#! /bin/sh
fbsetbg -f /home/emberdaemon/Downloads/37826-black-rock-shooter-hatsune-miku-tagme-vocaloid.jpg &
conky &
case ${1} in
(fluxbox) startfluxbox ;;
(dwm) dwm ;;
(*) echo "Choose a window manager" ;;
esac
I do not know how to achive that with dwm's bar, but you can do that easily with dzen2.I would like to remove conky and do it like this: http://dwm.suckless.org/screenshots/dwm-20101101.png (bar on top) but I don't know how.
Hey37826-black-rock-shooter-hatsune-miku-tagme-vocaloid.jpg
Look at the post above yours. It's nothing more than a detached (&) while loop that displays whatever you want (`date str?time blabla`, etc.) on the root window through xsetroot or similar and sleep()s the delay you want until the next turn. Nothing simpler.nekoexmachina said:I do not know how to achive that with dwm's bar
I've meant the icons on the bar, not the text.Look at the post above yours
Just like the post above, with some format options, e.g. while loop/conky/whatever with text & bitmap path & fonts & colors info formatted in dzen's format.I never understood how dzen2 work