Results 1 to 5 of 5

Thread: Bash and X and Window Managers.

  1. #1
    Join Date
    Sep 2010
    Location
    Cambridgeshire, England
    Beans
    14
    Distro
    Ubuntu

    Post Bash and X and Window Managers.

    I have matchbox and fluxbox installed, but when I boot my system, fluxbox runs automatically.

    Can someone please give me a few pointers? I just want to be able to start and quit my window managers at will using bash commands.

  2. #2
    Join Date
    Oct 2007
    Beans
    74

    Re: Bash and X and Window Managers.

    I don't think you can switch window managers without logging out of X first.

    You can define what window manager runs first (as well as starting other apps) in your .xinitrc file
    Code:
    # .xinitrc
    fluxbox & wmpid=$!
    
    # Start other apps
    # firefox &
    # xterm &
    # xterm &
    
    # HANG POINT - wait for window manager to exit
    wait $wmpid

  3. #3
    Join Date
    Mar 2008
    Location
    Earth
    Beans
    189

    Re: Bash and X and Window Managers.

    You can indeed change window managers after starting X. Are you looking to boot into bash, and then choose a WM/DE or change from one to the other while in X on the fly?

  4. #4
    Join Date
    Sep 2010
    Location
    Cambridgeshire, England
    Beans
    14
    Distro
    Ubuntu

    Re: Bash and X and Window Managers.

    Yes, I'm looking to boot into Bash, then be able to tell X what to do. My aim isn't so much to switch between window managers, but I would like to understand how to, what I need to figure out is what to do to display graphical output from Python scripts in a full-screen without a window manager.
    I'd like to be able to write a little script with Nano, save it, then run it from the command line and have the graphics open up and take over the screen until I quit the process.
    Thank you for getting back to me too.

  5. #5
    Join Date
    Sep 2010
    Location
    Cambridgeshire, England
    Beans
    14
    Distro
    Ubuntu

    Re: Bash and X and Window Managers.

    Quote Originally Posted by sharpdust View Post
    I don't think you can switch window managers without logging out of X first.

    You can define what window manager runs first (as well as starting other apps) in your .xinitrc file
    Code:
    # .xinitrc
    fluxbox & wmpid=$!
    
    # Start other apps
    # firefox &
    # xterm &
    # xterm &
    
    # HANG POINT - wait for window manager to exit
    wait $wmpid
    Nice one chap, thank you, this certainly helps with the window manager problem.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •