wmctrl 1.07

Window managers, icon programs, widgets, etc.
Post Reply
Message
Author
User avatar
lithpr
Posts: 86
Joined: Thu 10 Mar 2011, 06:33

wmctrl 1.07

#1 Post by lithpr »

Here's a .pet for wmctrl 1.07, built from the lucid .deb file. Tested on Lupu 5.2.5 (caveat: a derivative called RexBang).
Attachments
wmctrl-1.07-6_i386.pet
(12.93 KiB) Downloaded 1493 times

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#2 Post by Béèm »

What does it do?
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

DPUP5520
Posts: 800
Joined: Wed 16 Feb 2011, 05:38

#3 Post by DPUP5520 »

wmctrl is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager.

The tool provides command line access to almost all the features defined in the EWMH specification. It can be used, for example, to get information about the window manager, to get a detailed list of desktops and managed windows, to switch and resize desktops, to make windows full-screen, always-above or sticky, and to activate, close, move, resize, maximize and minimize them.

The command line access to these window management functions makes it easy to automate and execute them from any application that is able to run a command in response to an event.

Please note that wmctrl only works with window managers that implement the EWMH specification. The tool is known to work - either fully or partially - with the following window managers:

blackbox >= 0.70
icewm
kwin (the default WM for KDE)
metacity (the default WM for GNOME)
openbox >= 3
sawfish
fvwm >= 2.5
waimea
pekwm
enlightenment >= 0.16.6
xfce >= 4
fluxbox >= 0.9.6
matchbox
window maker >= 0.91
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69651][b][i]PupRescue 2.5[/i][/b][/url]
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=72178][b][i]Puppy Crypt 528[/i][/b][/url]

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#4 Post by `f00 »

wmctrl in general

One of those tools that sometimes gets into an offering (like musher0's wmx wm package) and you overlook it until it comes in handy. For example, I was trying to get a (nicer) graphical pager in ede wm, but most only displayed on one desktop (kind of useless for anything but observation) and the appdir that was sticky was fairly clunky. How to make a window that's usually undecorated sticky (on all desks)? Load something like fbpanel's pager, do a "wmctrl -l" to get some info, then if the desktop info hasn't got a "-1" in that column for "panel" .. "wmctrl -r panel -b toggle,sticky" and voila.

It's not always that simple, but still it can be useful if you've banged your head on most of the options you can think of and the control eludes your grasp when it seems like there should be a way of accomplishing this or that tweak you might want.

Yep, afterstep has its own way for sure :P

User avatar
lithpr
Posts: 86
Joined: Thu 10 Mar 2011, 06:33

#5 Post by lithpr »

Very cool `f00!

I've found all sorts of uses for it- not major accomplishments, but little things. I've used it to supplement Openbox's already excellent facilities for controlling application windows, implemenedt a "quake-terminal" type thingie, a window placing/resizing setup ala unity's Super-Keypad, replacing windows with a copy in the same size & position, a script to display a different background image on each virtual desktop... all sorts of fun little stuff.

It is a very cool little utility, and goes very well with xprop & xwininfo.

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

implementation in jwm

#6 Post by recobayu »

Hi All,
I do implementation of this wmctrl to the jwm window manager. I use shortcut Ctrl + Alt + Arrow to move window to up, left, down, and right side of screen. I called it stickyjwm. :D Here is the link: http://murga-linux.com/puppy/viewtopic. ... 303#825303

Edit:
I know from this thread:
http://murga-linux.com/puppy/viewtopic. ... 809#796809
Last edited by recobayu on Tue 03 Feb 2015, 08:28, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: implementation in jwm

#7 Post by musher0 »

recobayu wrote:Hi All,
I do implementation of this wmctrl to the jwm window manager. I use shortcut Ctrl + Alt + Arrow to move window to up, left, down, and right side of screen. I called it stickyjwm. :D Here is the link: http://murga-linux.com/puppy/viewtopic. ... 303#825303
Thanks, recobayu, for your useful script. It's not only for jwm, it can help "upgrade"
any older or more limited window manager (such as aewm, wmx2, echinus, etc.).

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

stickyjwm2

#8 Post by recobayu »

This is stickyjwm2. So many thanks to you all, thanks to mochimoppel.
the stickyjwm1 is from here:
http://murga-linux.com/puppy/viewtopic. ... 303#825303
Now, this stickyjwm2 is better (i think.. :wink:).
1. It can automatically detect our tray, bottom or top.
2. It will not remove your jwmrc-personal or your wmctrl
3. We can use winkey + arrow to control that
4. It only can walk on the new jwm (that support winkey nicely)
Attachments
stickyjwm2.pet
Just install this pet, and we can enjoy our new toy. like Cinnamon or wdz 10, i think.. :)
(50.72 KiB) Downloaded 1006 times

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

Re: stickyjwm2

#9 Post by MochiMoppel »

This is MUCH better! :wink:
Also a clever way to include the shortcuts in the user's jwmrc-personal

Now you should really delete links to stickyjwm1. Makes me nervous to see this thing still around :lol:
What I didn't understand: What means "can automatically detect our tray, bottom or top"? It may detect them, but it doesn't care about them. What is stickyjwm2 supposed to do when it detects trays?

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

Re: stickyjwm2

#10 Post by recobayu »

MochiMoppel wrote:This is MUCH better! :wink:
Also a clever way to include the shortcuts in the user's jwmrc-personal
39 mochimoppel..
What I didn't understand: What means "can automatically detect our tray, bottom or top"? It may detect them, but it doesn't care about them. What is stickyjwm2 supposed to do when it detects trays?
It is automatically set our window position. So that the window hopely never behind the tray again.
Eventhough our tray is autohide..
:D

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

Re: stickyjwm2

#11 Post by MochiMoppel »

recobayu wrote:39
You're welcome :lol:
So that the window hopely never behind the tray again.
It is always behind my 2 trays, so doesn't work for me, but probably works for users with uncustomized tray settings.

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#12 Post by Subito Piano »

I just ran into this post last night. Recobayu -- SWEET!!!! 8) I have LONG wanted all these features, both the easy window tiling and the "back & forth" action of ALT+TAB. THANK YOU!

Note for anyone reading this who prefers to silence the little "zap" sound when executing the tiling feature -- simply edit each of the following files found in /usr/bin:
  • supdownku2
    supleftku2
    suprightku2
    supupku2
Simply change the last three lines of each file from:

Code: Select all

#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && 
wmctrl -r :ACTIVE: -e 0,$X,$Y,$W,$H &&
aplay /usr/share/audio/tile.wav
to

Code: Select all

#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && 
wmctrl -r :ACTIVE: -e 0,$X,$Y,$W,$H
Alternatively, I suppose you could simply delete the file /usr/share/audio/tile.wav, but that seems not as clean a method...

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#13 Post by recobayu »

Thank you Subito.
This is the new stickyjwm. It is only for new jwm. I just tested it in xenialpup.
(maybe it will not work in other version puppy).
Attachments
stickyjwm-3.pet
With tile.wav sound
(43.5 KiB) Downloaded 669 times
stickyjwm-3-small.pet
No sound
(12.94 KiB) Downloaded 681 times

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#14 Post by LazY Puppy »

The stickyjwm-3

- up
- left
- right

works in tahr 6.0.2.

- down doesn't work
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#15 Post by LazY Puppy »

Tested this also in Xenial 7.0.1.

No chance to get a window sized/placed to the bottom half of the screen.

All what happens as a result is a centered window with its bottom frame behind the tray.

Edit:

A test using the content of supdownku2 from version 2 within supdownku (just replaced its content) was successful!
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#16 Post by recobayu »

I hope this stickyjwm is success.
Attachments
stickyjwm-3.1.pet
(51.22 KiB) Downloaded 547 times

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#17 Post by recobayu »

1. Fix for moving llibreoffic's window by setting 1 for gravity of wmctrl
2. Fix for urxvt maximize using win + top arrow (supupku)
3. Faster speed (defining variables)
4. Succes tested on xenialpup
Attachments
stickyjwm-4.1.pet
Add shortcuts (look at /root/.jwm/stickyjwm) and compatibility to old puppies
(50.5 KiB) Downloaded 595 times

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#18 Post by recobayu »

Hi All.
I have an update of stickyjwm. Now it is able to move to another monitor. The behavior is like windows 10. If we have duplicate screen, stickyjwm will detect the smallest screen. I have tested it on bionic. But I still have a problem in detecting tray. Because upupbb (and maybe the new woof ce puppy) have so many tray. Any help will be appreciate. Feel free to modify or use this code. Thank you so much.

Edit:
Now this is support for duplicate monitor eventhough different resolution. It still not detect tray yet.
so the window always behind the tray. My suggest is autohide all tray.
Attachments
stickyjwm-4.3-180906.pet
This can detect duplicate screen eventhough they are different resolution.
(2.82 KiB) Downloaded 352 times

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#19 Post by recobayu »

I noticed that the tray's location is always on the left monitor. So I decided that the right monitor always produces a fullscreen window (no tray on it).
Image

update 190208
Stickyjwm-19.1 is support resize window by 100px by press winkey + alt + arrow. So now not only half, but more flexible width of window. Here is the complete shortcut. I put it on /root/.jwm/stickyjwm.
win + arrow = stickyjwm
win + shift + arrow = maxleft, maxright, etc (default sticky by jwm)
win + alt + arrow = resize window per 100px
Attachments
stickyjwm-19.1.pet
fullscreen on the right monitor, fix for duplicate monitor, ability to resize width window per 100px
(3.61 KiB) Downloaded 326 times

Post Reply