LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-27-2023, 07:22 PM   #1
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Rep: Reputation: 7
Are there any diehard TWM user still around? I cannot exit TWM.


Hi,

I tried to exit TWM to go back to console. But it won't. I have to manually kill the X server.

What am I doing wrong?

Thanks
 
Old 11-27-2023, 09:26 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I don't if this will help but, for what it's worth, I just started my VM of Slackware and switched to TWM, then entered startx. When TWM opened up, it opened three terminal emulators. I typed exit into one and found myself back at the Slackware command line.

Note that, in Slackware, I boot to the command line, not to a display manager.
 
Old 11-28-2023, 12:38 AM   #3
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
I don't if this will help but, for what it's worth, I just started my VM of Slackware and switched to TWM, then entered startx. When TWM opened up, it opened three terminal emulators. I typed exit into one and found myself back at the Slackware command line.

Note that, in Slackware, I boot to the command line, not to a display manager.
I suspect that's because of how twm is being launched in your .xsession file, one of the xterm windows are the 'control' xterm that result in twm exiting when that xterm window is closed.

twm is fine, but now has quirks in the likes of firefox when the press/drag menu style results in firefox 3-dot menu behaviour that is awkward, you have to resort to the arrow keys after initiating the firefox 3-dot menu. ctwm is a later evolution, as adopted as the default in netbsd, that is a click to initiate menu that works better with firefox.

Remember that with twm style you first get the grid of where the window will be positioned and you typically use the bottom left or right corner as the initial position of that corner, and then with the resize button you first mouse into the window and then outward in the direction that you wish to resize/position the top left (right) window corner to.

If you don't have a ~/.xsession then the twm launch code is in something like /etc/X11/xinitrc

Last edited by rufwoof; 11-28-2023 at 12:41 AM.
 
Old 11-28-2023, 10:48 AM   #4
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by rufwoof View Post

twm is fine, but now has quirks in the likes of firefox when the press/drag menu style results in firefox 3-dot menu behaviour that is awkward, you have to resort to the arrow keys after initiating the firefox 3-dot menu. ctwm is a later evolution, as adopted as the default in netbsd, that is a click to initiate menu that works better with firefox.
Not only awkward. It is impossible to do certain task. On the Firefox task bar, TWM does not allow click-drag. Like I cannot open the Ublock Origin extension at all. I also tried Bitwarden and got same problem.

I guess I will give CTWM a try.

Last edited by Alfred-Augustus; 11-28-2023 at 11:01 AM.
 
Old 11-28-2023, 11:03 AM   #5
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 688
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I do use it once in a while, one thing I use with it is vdesk:

https://offog.org/code/vdesk/

But, how do you start twm(1) ? startx(1), via somekind of desktop manager ? Can you get to a virtual console when this happens ? How about while in twm.

That gives you a kind of pseudo virtual desktops, it work great with twm. I may have to fire it up, it has been a while

See: cpcnw.co.uk for an interesting twm page.

Another thing I will miss greatly once we in Linux are forced to move to Wayland

Last edited by jmccue; 11-28-2023 at 11:05 AM.
 
Old 11-28-2023, 11:28 AM   #6
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
Quote:
Originally Posted by jmccue View Post
But, how do you start twm(1) ? startx(1), via somekind of desktop manager?
https://www.oreilly.com/library/view...03.html#ch3-12

For a quick test under Linux, in a existing X session xterm window ...

X :1 & # start another X display
DISPLAY=:1 xterm &
DISPLAY=:1 twm

In the default twm menu there are options to restart or exit twm
 
Old 11-28-2023, 03:31 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,985

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Can you exit using telinit?
 
Old 11-28-2023, 03:54 PM   #8
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Some info:
https://wiki.archlinux.org/title/Twm
https://man.archlinux.org/man/twm.1
 
Old 11-30-2023, 01:46 AM   #9
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
Quote:
Originally Posted by Alfred-Augustus View Post
Not only awkward. It is impossible to do certain task. On the Firefox task bar, TWM does not allow click-drag. Like I cannot open the Ublock Origin extension at all. I also tried Bitwarden and got same problem.

I guess I will give CTWM a try.
Depends upon usage case. I have a Linux vm (kvm/qemu) on a server that's hard wired (nvidia, i5, 8GB) that I vnc into from OpenBSD running on my (slow) wifi connected laptop - pretty much just base OpenBSD + tigervnc, and when running twm that works fine. Setting squashed tabs is nice as you can place the titles alongside each other whilst that also leaves exposed desktop space that you can click for the OpenBSD menu to present.

The attached image doesn't do it justice as its compressed (jpeg quality reduction), however I find that fonts/display is much crisper under OpenBSD. And things just work, for instance as part of that vnc I also forward sound (sndiod) to the laptop and under Linux its less reliable at for instance having video flow over eth, sound over wlan. OpenBSD in contrast - just works.

Cheating of course, as the vm is running Fatdog Linux using jwm window manager, in my case running chrome rather than firefox, so twm isn't involved in the likes of firefox menu clicks or dragging operations, jwm is handling that instead.
Attached Thumbnails
Click image for larger version

Name:	i.jpg
Views:	20
Size:	189.2 KB
ID:	42144  
 
Old 12-04-2023, 12:26 PM   #10
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 243Reputation: 243Reputation: 243
The default /etc/X11/xinit/xinitrc.twm has this:

Code:
# start some nice programs

/usr/bin/twm &
/usr/bin/xclock -geometry 50x50-1+1 &
/usr/bin/xterm -geometry 80x50+494+51 &
/usr/bin/xterm -geometry 80x20+494-0 &
exec /usr/bin/xterm -geometry 80x66+0+0 -name login
which makes exiting contingent on the last xterm (the one with the login), not the window manager. If you are running twm with the default, you'll get this. It's been a long time since I ran twm on Linux, but this default is on Minix3 as well and a few months ago I forgot about it and got "stuck" for a minute. Edit your .xinitrc (or system xinitrc) to not have all the other programs started, just 'twm' as the last line. The twm config is very bare so you'll likely want to edit that as well so your wanted programs show up. Remember that there's a system.twmrc.

If you like basic WM's there's also Motif (mwm) and eMotif (emwm).
 
Old 12-04-2023, 06:24 PM   #11
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 688
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Note, in the vtwm mailing list I saw an issue with firefox and vtwm. The same issue also happens in twm.

The issue has to do with "AutoRaise". If enabled firefox menus act very odd. To fix, you do this in firefox:
  • go to "about:config"
  • set "widget.gtk.grab-pointer" to "1"
  • Restart Firefox
 
1 members found this post helpful.
Old 12-07-2023, 08:47 AM   #12
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Code:
bash-5.1$ du -sh /usr/bin/[fmt]*wm

852K    /usr/bin/fvwm
328K    /usr/bin/mwm
180K    /usr/bin/twm
Fvwm looks like it is bloated compared to Twm.

I use Fvwm, and I keep my setup very minimalist.
Twm looks like the ultimate minimalist WM.

Last edited by Alfred-Augustus; 12-07-2023 at 08:50 AM.
 
Old 12-07-2023, 09:43 AM   #13
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 688
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Alfred-Augustus View Post
Code:
bash-5.1$ du -sh /usr/bin/[fmt]*wm

852K    /usr/bin/fvwm
328K    /usr/bin/mwm
180K    /usr/bin/twm
Fvwm looks like it is bloated compared to Twm.

I use Fvwm, and I keep my setup very minimalist.
Twm looks like the ultimate minimalist WM.
If you really want small and useful, icewm seems to be the champ, with ctwm in second place. I did memory use a very long time ago and that was the case. And based upon posts I have seen, it still seems to be the case.

But with fvwm, you get a lot more with the extra 500K
 
Old 12-17-2023, 11:32 PM   #14
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by Alfred-Augustus View Post
Twm looks like the ultimate minimalist WM.
Xorg is all I have on my FreeBSD.
Installed Nautilus, Firefox, Bluefish, Meld, xbindkeys to launch the apps.
Minimalist it is and works fine, I also developed a Whiptail menu to automate many command line tasks, for logging out of X it launches this command:
Code:
pkill X
X does not have a graceful shutdown option.

EDIT:
I also edit the /etc/X11/xinit/xinitrc file as below to get rid of the three terminals, have Feh installed for desktop wallpaper.
Quote:
twm #&
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login

Last edited by Brains; 12-17-2023 at 11:36 PM.
 
Old 02-24-2024, 01:21 PM   #15
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
Quote:
Originally Posted by jmccue View Post
Note, in the vtwm mailing list I saw an issue with firefox and vtwm. The same issue also happens in twm.

The issue has to do with "AutoRaise". If enabled firefox menus act very odd. To fix, you do this in firefox:
  • go to "about:config"
  • set "widget.gtk.grab-pointer" to "1"
  • Restart Firefox
For chrome, in twm you can either use the (click root window) menu's 'focus' option, or set up a key such as F12 i.e. if the burger bar menu doesn't stay open press F12 and click it again and it will present and stay open if you've modified your .twrmc to include that the F12 keycode f.focus action. See ...

https://www.linuxquestions.org/quest...3/#post6480688

Last edited by rufwoof; 02-24-2024 at 01:22 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any KWorldClock* style applications still around? 273 Linux - Software 4 09-12-2015 08:54 PM
Is there a modern variant of dsl still around? Indy452 DamnSmallLinux 6 02-10-2011 02:57 AM
FreeBSD diehard fans I had a bad experince dalfish *BSD 5 12-04-2009 12:37 AM
LXer: Review: A Diehard SUSE User Tries Ubuntu 6.10 LXer Syndicated Linux News 0 11-08-2006 06:21 AM
help a diehard slacker convert to gentoo Axion Linux - Distributions 11 01-12-2005 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration