3

My machine boots into command-line and then I run the following command to open a display with TWM window manager on it:

$ xinit /usr/local/bin/twm 

On TWM, this is how I run apps: I left-click anywhere on the black screen and a menu shows up. Then I select xterm and on xterm command-line, I run my app for example:

$ opera 

The problem is that for every app, I need a xterm to be opened first. I wonder if there is any other way by which I can open my apps without having to open xterm. Thanks.


I ended up compiling/installing version 2.6.7 of fvwm which is also suggested here. It is a cool window manager with many features.

4
  • 2
    twm's manual page explains menus, and it comes with samples... Commented Jun 3, 2017 at 1:34
  • @ThomasDickey Right, I think I can add options to menus with statements like this: "Opera" f.exec "exec opera &" Commented Jun 3, 2017 at 1:54
  • 1
    Twm is one of the oldest window managers. Fvwm was one of the most powerful window managers in the 1990s. Today fvwm is still a contender but there are many many many more. Commented Jun 3, 2017 at 22:20
  • @Gilles It's a whole lot of window managers, I'm curious which one would you recommend on such a machine from 2005 Commented Jun 4, 2017 at 10:23

1 Answer 1

4

Define a menu in your .twmrc, like:

Menu "MyMenu" { "Opera" f.exec "Opera" } 

Then bind it to your left mouse button instead of the default one:

Button1 = : root : f.menu "MyMenu" 

Look at TWM(1) to see how to configure TWM according to you needs. You may also want to see examples of configuration at xwinman.org.

TWM lacks the feature of generating dynamic menus, so you'll need to define a menu for every set of apps you want to be accessible that way, or you can use the xdgmenumaker utility.

1
  • I ended up compiling/installing version 2.6.7 of fvwm which is cool. It supports full-screen feature, and many more. Commented Jun 3, 2017 at 3:18

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.