Share your configuration file of TWM best X windows manager
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
# -- 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
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.
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.
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).
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.