LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-13-2016, 05:40 PM   #1
linuxlicious
Member
 
Registered: May 2011
Posts: 87

Rep: Reputation: 6
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.
 
Old 05-08-2017, 01:51 PM   #2
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by linuxlicious View Post
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
 
Old 05-18-2017, 07:18 AM   #3
alexandreviau
LQ Newbie
 
Registered: Dec 2016
Posts: 2

Rep: Reputation: Disabled
Hi linuxlicious,

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
 
Old 05-18-2017, 01:33 PM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by alexandreviau View Post
Hi linuxlicious,

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 !!

here follow the king config: https://github.com/spartrekus/CTWM-window-manager-2017
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to install tinywm a new window manager in slackware 14.1? nitecrawler Slackware 33 06-25-2015 05:05 AM
how to install tinywm a new window manager in slackware 14.1? nitecrawler Slackware 2 05-01-2015 11:44 AM
seeking help using 'wmctrl' with Mint and Cinnamon SaintDanBert Linux - Desktop 15 01-01-2014 10:14 AM
[SOLVED] wmctrl is not showing all windows emgee_1 Slackware 2 10-21-2012 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:31 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