Trying something with tinywm, wmctrl and xbindkeys, need help+advice
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Trying something with tinywm, wmctrl and xbindkeys, need help+advice
I'm trying to set up an extremely minimalistic desktop and I'm trying to makt tinywm a little bit more useful with wmctrl, xbindkeys and vdesk. What I'm essentially trying to accomplish is to use a combination of wmctrl and xbindkeys to create some sort of hot corners/areas where for example if the mouse moves with in x pixel of say the border and you click and move the mouse, you resize the window to the left, or if you move into x pixels from any corner and press the mouse button, you maximize the window to that direction, and doing the same on a maximized window minimizes it, also moving the mouse to the right corner of a window and pressing the mouse button twice within x milliseconds should kill the window. You'll get the picture what I'm trying to do. Can anyone help me accomplish this task? I might even make it a stand alone script to apply on other window managers. I use spectrwm on a laptop right now and I find it very awkward manipulating floating windows with the touchpad here or in tinywm.
I'm trying to set up an extremely minimalistic desktop and I'm trying to makt tinywm a little bit more useful with wmctrl, xbindkeys and vdesk. What I'm essentially trying to accomplish is to use a combination of wmctrl and xbindkeys to create some sort of hot corners/areas where for example if the mouse moves with in x pixel of say the border and you click and move the mouse, you resize the window to the left, or if you move into x pixels from any corner and press the mouse button, you maximize the window to that direction, and doing the same on a maximized window minimizes it, also moving the mouse to the right corner of a window and pressing the mouse button twice within x milliseconds should kill the window. You'll get the picture what I'm trying to do. Can anyone help me accomplish this task? I might even make it a stand alone script to apply on other window managers. I use spectrwm on a laptop right now and I find it very awkward manipulating floating windows with the touchpad here or in tinywm.
Hi,
Here too, there is very minimalist on going, and being under work and development.
I have a cool possible config for you which is ctwm, and I also made a sort of tinywm with borders and preview of new size of window during resize (beta testing). https://github.com/spartrekus/CTWM-window-manager-2017
You can have a minimalist WM using twm which is installed by default usually, it is very low on resource yet it has many features out of the box.
It can achieve almost everything you need if you add something like this to the twmrc.
I needed to modify the source code to send the windows to the corners (topleftzoom, toprightzoom, etc), but the other functions (leftzoom, bottomzoom) are out of the box. If you are interested tell me I will send you the modified version to send the windows to the corners.
#Window docking
# To the left
"h" = m | s : all : f.leftzoom
# To the bottom
"j" = m | s : all : f.bottomzoom
# To the top
"k" = m | s : all : f.topzoom
# To the right
"l" = m | s : all : f.rightzoom
# To the corners
# To the topleft
"u" = m | s : all : f.topleftzoom
"i" = m | s : all : f.topleftzoom
# To the topright
"o" = m | s : all : f.toprightzoom
"p" = m | s : all : f.toprightzoom
# To the bottomleft
"n" = m | s : all : f.bottomleftzoom
# To the bottomright
"m" = m | s : all : f.bottomrightzoom
Also you may want to use XFCE which docks the windows anywhere and is also low on resource.
You can have a minimalist WM using twm which is installed by default usually, it is very low on resource yet it has many features out of the box.
It can achieve almost everything you need if you add something like this to the twmrc.
I needed to modify the source code to send the windows to the corners (topleftzoom, toprightzoom, etc), but the other functions (leftzoom, bottomzoom) are out of the box. If you are interested tell me I will send you the modified version to send the windows to the corners.
#Window docking
# To the left
"h" = m | s : all : f.leftzoom
# To the bottom
"j" = m | s : all : f.bottomzoom
# To the top
"k" = m | s : all : f.topzoom
# To the right
"l" = m | s : all : f.rightzoom
# To the corners
# To the topleft
"u" = m | s : all : f.topleftzoom
"i" = m | s : all : f.topleftzoom
# To the topright
"o" = m | s : all : f.toprightzoom
"p" = m | s : all : f.toprightzoom
# To the bottomleft
"n" = m | s : all : f.bottomleftzoom
# To the bottomright
"m" = m | s : all : f.bottomrightzoom
Also you may want to use XFCE which docks the windows anywhere and is also low on resource.
Best regards,
Alexandre
So far, ctwm is much better and furthermore, you can compile it rather well.
cmake is NOT good at all, but ok, at least it has all what you need:
clicktofocus or raise win/followfocus
workspace
and super key configuration possibilities.
It is ugly, which is also important, to be as light as evilwm or tinywm !!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.