Multiple wm .xinitrc

Could use something like this in your .xinitrc, it won't ask which but you can just type startx (or xinit) dwm/fluxbox.

Code:
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 you want to start different WM from command line, why not define aliases in
your login shell's configuration file instead of complicating things with .xinitrc?
 
This did the job for me:
Code:
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
But I am commenting (#)
 
Code:
if [[ $1 == "fluxbox" ]]
then
  exec startfluxbox
elif [[ $1 == "dwm" ]]
then
  exec dwm
else
  echo "Choose a window manager"
fi

Isn't that simpler?
Code:
case ${1} in
  (fluxbox) startfluxbox ;;
  (dwm)     dwm ;;
  (*)       echo "Choose a window manager" ;;
esac

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 &
Why You are setting the same wallpaper every 1 second?

Its definitely not needed ... it should be like that:
Code:
fbsetbg -f /home/emberdaemon/Downloads/37826-black-rock-shooter-hatsune-miku-tagme-vocaloid.jpg

Code:
exec dwm
... and at the end You are AGAIN starting dwm, no matter what the choice at the beginning was, this script is pure mess mate.

It should look like that:
Code:
#! /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 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.
I do not know how to achive that with dwm's bar, but you can do that easily with dzen2.
http://sites.google.com/site/gotmor/dzen
37826-black-rock-shooter-hatsune-miku-tagme-vocaloid.jpg
Hey :) One more hatsune's fan on the forums.
May be you will be interested: script to download all the wpprs from konachan with the tag $TAG
http://nopaste.info/cee56adf98.html
used, like, python ./script $TAG
 
nekoexmachina said:
I do not know how to achive that with dwm's bar
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.
 
Back
Top