LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-29-2016, 04:22 PM   #16
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138

Quote:
Originally Posted by dugan View Post
I'm... pretty sure that nobody has one.
Probably, but I am sure that maybe one or two still have it. It's quite old but still used.
TWM is indeed a nice fallback.

Look the ed and vi(m), later emacs, are still heavily being used. Old stuffs CAN be readily employed in Linux.
 
Old 09-04-2016, 08:56 AM   #17
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 687
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Here is mine, as rkfb mentioned, vdesk works great with twm.
Attached Thumbnails
Click image for larger version

Name:	twm.jpg
Views:	340
Size:	205.0 KB
ID:	22929  
Attached Files
File Type: txt twmrc.txt (15.7 KB, 121 views)
 
2 members found this post helpful.
Old 09-04-2016, 11:54 AM   #18
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by jmccue View Post
Here is mine, as rkfb mentioned, vdesk works great with twm.
Nice work, I knew I wasn't the only one :-)
 
Old 09-04-2016, 01:33 PM   #19
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by rkfb View Post
Nice work, I knew I wasn't the only one :-)
indeed very nice.

the drawback of twm is that you need to click to position the new window... maybe there is a workaround

herewith my xbindkeys:
Quote:
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.5
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# To specify a key, you can use 'xbindkeys --key' or
# 'xbindkeys --multikey' and put one of the two lines in this file.
#
# The format of a command line is:
# "command to start"
# associated key
#
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier:
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#

# The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events

# By defaults, xbindkeys does not pay attention with the modifiers
# NumLock, CapsLock and ScrollLock.
# Uncomment the lines above if you want to pay attention to them.

#keystate_numlock = enable
#keystate_capslock = enable
#keystate_scrolllock= enable

# Examples of commands:

"xbindkeys_show"
control+shift + q


" xfwm4-settings & gtk-chtheme "
m:0x50 + c:127
Mod2+Mod4 + Pause


" gtk-chtheme "
m:0x51 + c:127
Shift+Mod2+Mod4 + Pause



" xterm -bg black -fg grey -fa 15 "
m:0x50 + c:53
Mod2+Mod4 + x

" cd ; echo firefox | dzen2 -p 1 -bg blue ; firefox "
m:0x50 + c:41
Mod2+Mod4 + f


" cd ; date +%Y%m%d-%H%M%S-%a | awk '{print toupper($0)}' | xsel -b -i ; echo DATE | dzen2 -p 1 -bg blue "
m:0x51 + c:40
Shift+Mod2+Mod4 + d


"xdotool set_desktop $(expr $(expr $(xdotool get_desktop) - 1) )"
m:0x50 + c:45
Mod2+Mod4 + k

"xdotool set_desktop $(expr $(expr $(xdotool get_desktop) + 1) )"
m:0x50 + c:44
Mod2+Mod4 + j



# -- Move Right --
# This is the general command that works with any number of workspaces:
# "xdotool set_desktop $(expr $(expr $(xdotool get_desktop) + 1) % $(xdotool get_num_desktops))"
# This is the optimized command for 5 workspaces:
"xdotool set_desktop $(expr $(expr $(xdotool get_desktop) + 1) )"
m:0x50 + c:114
Mod2+Mod4 + Right


# -- Move Left --
# This is the general command that works with any number of workspaces:
# "xdotool set_desktop $(expr $(expr $(xdotool get_desktop) + $(expr $(xdotool get_num_desktops) - 1)) % $(xdotool get_num_desktops))"
# This is the optimized command for 5 workspaces:
"xdotool set_desktop $(expr $(expr $(xdotool get_desktop) - 1) )"
m:0x50 + c:113
Mod2+Mod4 + Left


" cd ; echo icedove | dzen2 -p 1 -bg blue ; icedove "
m:0x50 + c:32
Mod2+Mod4 + o


" ndataman --xpause "
m:0x10 + c:127
Mod2 + Pause

" ndataman --scrot "
m:0x10 + c:107
Mod2 + Print

" xfce4-taskmanager "
m:0x1c + c:119
Control+Alt+Mod2 + Delete


" wmctrl -r :ACTIVE: -b toggle,maximized_vert,maximized_horz "
m:0x40 + c:38
Mod4 + a

" wmctrl -c :ACTIVE: "
m:0x40 + c:25
Mod4 + w


" amixer set Master 2+ "
m:0x40 + c:111
Mod4 + Up

" amixer set Master 2- "
m:0x40 + c:116
Mod4 + Down


"xdotool set_desktop 0 "
m:0x40 + c:10
Mod4 + 1
"xdotool set_desktop 1 "
m:0x40 + c:11
Mod4 + 2
"xdotool set_desktop 2 "
m:0x40 + c:12
Mod4 + 3
"xdotool set_desktop 3 "
m:0x40 + c:13
Mod4 + 4

" xdotool windowminimize $(xdotool getactivewindow) "
m:0x40 + c:24
Mod4 + q


" amixer set Master 2+ "
m:0x0 + c:123
XF86AudioRaiseVolume

" amixer set Master 2- "
m:0x0 + c:122
XF86AudioLowerVolume

" i3lock -i ~/.wallpaper "
m:0x50 + c:46
Mod2+Mod4 + l


" icedove -compose "
m:0x51 + c:57
Shift+Mod2+Mod4 + n

" cd ; leafpad "
m:0x50 + c:57
Mod2+Mod4 + n


" xterm -bg black -fg green "
m:0x51 + c:53
Shift+Mod2+Mod4 + x

##################################
# End of xbindkeys configuration #
##################################




" cncxclip "
m:0x50 + c:30
Mod2+Mod4 + u


" xterm -e ndataman --cmd ycal "
m:0x50 + c:73
Mod2+Mod4 + F7



" screen -d -m ndataman --cmd oxford "
m:0x50 + c:56
Mod2+Mod4 + b



" cd ; thunar "
m:0x40 + c:26
Mod4 + e


" pkill mutt ; xterm -bg white -fb grey -e mutt "
m:0x50 + c:58
Mod2+Mod4 + m

" xterm -e ndataman --cmd pad0 "
m:0x50 + c:75
Mod2+Mod4 + F9


" icedove -compose "
m:0x51 + c:58
Shift+Mod2+Mod4 + m


" thunar ~/Desktop "
m:0x50 + c:40
Mod2+Mod4 + d

Last edited by patrick295767; 09-04-2016 at 01:35 PM.
 
Old 08-01-2020, 01:55 PM   #20
samtsco
Member
 
Registered: Sep 2010
Location: Pittsburgh
Distribution: Slackware
Posts: 74

Rep: Reputation: 3
I use twm exclusively, without a twmrc.txt
 
Old 08-01-2020, 02:41 PM   #21
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by samtsco View Post
I use twm exclusively, without a twmrc.txt
Stark:
Attached Thumbnails
Click image for larger version

Name:	twm.png
Views:	163
Size:	5.9 KB
ID:	33776  
 
1 members found this post helpful.
Old 08-03-2020, 08:31 AM   #22
samtsco
Member
 
Registered: Sep 2010
Location: Pittsburgh
Distribution: Slackware
Posts: 74

Rep: Reputation: 3


Since writing that I used it exclusively, with no rc, I tried to get it running on a new client and failed, so the client is running finite elements (calculix-ccx) without a desktop and without a wm. And I love it!

My slack box has twm; the client runs Debian for the time being, and that's why I couldn't yet figure out how to run twm on it.
 
Old 08-03-2020, 08:32 AM   #23
samtsco
Member
 
Registered: Sep 2010
Location: Pittsburgh
Distribution: Slackware
Posts: 74

Rep: Reputation: 3
The client takes less than 2 seconds to shutdown! I love that!
 
Old 08-03-2020, 03:40 PM   #24
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by samtsco View Post
The client takes less than 2 seconds to shutdown! I love that!
I use openbox and shutdown times are the same for openbox or twm.
I agree that it's probably much faster than with a full-fledged DE, but the underlying system also takes its time, regardless of the WM/DE used.
 
Old 02-24-2024, 03:50 PM   #25
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
Quote:
Originally Posted by samtsco View Post
I use twm exclusively, without a twmrc.txt
Default .twmrc here, with just SqueezeTitle to compact the window titles, and some re-arranging of the windows controls (resize top left, iconify next to that, the window title and then the close option right-most).

Still use vesa as well (framebuffer). Basic Linux+busybox, ssh/ssl, alsa/sndio, framebuffer vnc ... where I use my phone, and/or a overlayfs/chroot (set up as a 'headless' running vnc server), or a remote vnc server (Window, mac, linux, BSD, whatever), and can be vnc'd into each, any, all at the same time (different ctrl-alt-Fn's).

twm still viable/usable in 2024

For remote calling home I tend to set color depth 16 bits, 8 frames per second, which still looks/feels good and where even playing youtubes using chrome via remote ssh/vnc is good-enough.

Clock (top right) is just a framebuffer clock. With the framebuffer when you ctrl-alt-fn to another tty, any videos/changes on another TTY still bleed through if you don't 'freeze' that tty before switching. Which can be a feature, such as a youtube playing in one vnc session will bleed through/show in a another cli tty session (illusion of a video playing in a cli session).
Attached Thumbnails
Click image for larger version

Name:	fb.jpg
Views:	20
Size:	116.4 KB
ID:	42593  

Last edited by rufwoof; 02-24-2024 at 03:52 PM.
 
Old 03-04-2024, 04:34 PM   #26
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
LXQT panel/menu/tray works well when set to be that the top of screen and of restricted length ... in conjunction with using a panning area. My laptop is 1366x768 and I set that as a view/panning area within a 3000x2400 screen area

xrandr --output eDP --mode 1366x768 --panning 3000x2400

Move the mouse to screen edges and the visible area moves within that larger area.

When you open a program within twm you're initially presented with a 3x3 grid wire frame that you can move to where you want the window be positioned, and press the left mouse button to drop it there. If instead you press the right mouse then the window is dropped there, but where the bottom of the window is extended all the way down to the bottom or the total display area. Click chrome, move the grid so that the top left is just below the lxqt tray, press the right mouse and ... you have a browser that extends down (in my case) near 2400 pixels. Move the mouse to the bottom of the screen and the view area scrolls down ...etc.

Panning instead of separate desktops is nice when otherwise something might be off-screen, a simple mouse over to that side of the screens brings it into view. My setup is much like having a 2x3 desktops setup, but where instead of deliberate switches between desktops you can smoothly 'scroll' into each either partially or fully. In Libre Office for instance a whole document page can fit within the display area, just the visible window may not show all of that, but moving the mouse brings parts into view .. as desired.

Great for predominately mouse based usage. Tiling in contrast is more for predominately keyboard based usage.

https://postimg.cc/7fQ3mVvv

Last edited by rufwoof; 03-04-2024 at 04:38 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
How to share with pcmanfm file manager fkervin Linux - Software 4 01-02-2015 01:42 PM
Coolest TWM window manager configuration? Xeratul Linux - Desktop 2 09-29-2013 10:01 AM
Stuck w/ twm Window Manager in CentOS 5.3 JMCraig Red Hat 3 01-08-2010 03:41 PM
the window manager TWM speedemonV12 SUSE / openSUSE 3 09-02-2005 02:25 AM
Configuration file for which Desktop manager to use? Knuckles T15 Fedora 1 04-10-2005 10:20 AM

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

All times are GMT -5. The time now is 05:09 PM.

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