The time now is Sat 16 Jan 2021, 13:52
All times are UTC - 4 |
Author |
Message |
MochiMoppel

Joined: 26 Jan 2011 Posts: 2084 Location: Japan
|
Posted: Fri 12 Sep 2014, 22:22 Post subject:
JWM WinSwitcher Subject description: The fastest way to access any window on any desktop |
|
WinSwitcher is a menu showing all windows, across all desktops.
It allows to find and access any open window instantly and is designed as a supplement for JWM's tasklist.
May work with other window managers. Openbox users may not need it as Openbox already has a similar menu built in.
Key features:
- Lists all windows, even those not accessible from tasklist (e.g. confirmation dialogs)
- Allows to access or close windows via single-key shortcuts
- Additional context menu allows mouse-only operations
- Can be opened/closed with same desktop/keyboard shortcut.
- Look & feel similar to a JWM pop-up menu (No buttons, no menu bar, closes when clicked or focus lost)
- Adjusts its height dynamically depending on number of items
- Creates no config or temporary files
Installation:
No particular installation needed. It's just 1 file so you may want to put it into /usr/bin.
To access the script easily and quickly, some care should be taken when choosing a suitable trigger.
Recommended: Tray button (see screenshot). Opens the menu neatly above the tray and avoids the "empty desktop" bug (see "Issues")
For placement at right edge of tray edit /root/.jwmrc-tray:
Quote: | <Clock format="%-H:%M:%S">minixcal</Clock>
<TrayButton label="WinSwitch" >exec:winswitcher</TrayButton>
</Tray> |
A keyboard shortcut (e.g. assigned to Windows key) may be the quickest way.
Dependencies:
wmctrl, gtkdialog4
Issues:
- WinSwitcher may not open when triggered by a keyboard shortcut on an empty desktop. Seems to be a bug. Can be prevented by positioning mouse cursor over tray.
Changelog
v.1.2: Added compatibility for puppies using bash versions <3.2 (e.g. Precise 5.6)
v.1.1: First release. Added context menu and help page
v.1.0: Unreleased version
Description |
|
Filesize |
47.61 KB |
Viewed |
1541 Time(s) |

|
Description |
|

Download |
Filename |
winswitcher_1.2.zip |
Filesize |
3.89 KB |
Downloaded |
499 Time(s) |
|
Back to top
|
|
 |
Jasper
Joined: 25 Apr 2010 Posts: 1350 Location: England
|
Posted: Sun 14 Sep 2014, 04:30 Post subject:
|
|
Hi MochiMoppel,
Thank you very much for your investigations and then providing a version which also works with Precise 5.6 (with bash version 3.0).
My regards
PS Thank you also for your earlier advice (now edited out after your update) to update to bash 4.1 via Slacko 5.6 which I actioned.
|
Back to top
|
|
 |
Puppus Dogfellow

Joined: 07 Jan 2013 Posts: 1669 Location: nyc
|
Posted: Mon 15 Sep 2014, 11:06 Post subject:
|
|
cool, the official release!
still no refresh button? sometimes i like to use it to get to more than one thing at clip. having to reopen it is kinda annoying, but maybe i've become spoiled. i use an older version pretty much every time i sit in front of a computer--it's a great thing you've done here. should be in every puppy, or at least every puppy running JWM.
|
Back to top
|
|
 |
MochiMoppel

Joined: 26 Jan 2011 Posts: 2084 Location: Japan
|
Posted: Wed 17 Sep 2014, 21:09 Post subject:
|
|
Puppus Dogfellow wrote: | still no refresh button? | What for? Menu is "refreshed" when you open it and window close actions refresh the menu instantly. All menus, not only mine, close when you click an item. Then their work is done and without further user action they give up the space they oppupied. Clever concept.
Yes, I deviated from this concept by not closing the menu after window close actions, but that's my personal preference and I'm not always dogmatic
|
Back to top
|
|
 |
Puppus Dogfellow

Joined: 07 Jan 2013 Posts: 1669 Location: nyc
|
Posted: Thu 18 Sep 2014, 00:36 Post subject:
|
|
MochiMoppel wrote: | Puppus Dogfellow wrote: | still no refresh button? | What for? Menu is "refreshed" when you open it and window close actions refresh the menu instantly. All menus, not only mine, close when you click an item. Then their work is done and without further user action they give up the space they oppupied. Clever concept.
Yes, I deviated from this concept by not closing the menu after window close actions, but that's my personal preference and I'm not always dogmatic  |
the space they occupy is of no concern to me--anything more recently clicked will open on top of it and it can always be minimized or closed if its presence becomes annoying. i love the script, Mochi, i just prefer to be able to keep it open. i added a button to your other script so i can launch this one with it, but to be honest, i prefer my hacked version of an earlier version--always on if i want, can be positioned where i want, refreshed as needed...i suppose the close all rox, sticky, and layer buttons make it gaudier in some respects, but i like the grabbable title bar, etc. i have so much respect for your work here that i don't even want to offer up my hack of a hack of it.
i guess the main difference is you see it as a fleeting menu, i see it as a control center of sorts. to me it just seems like something better suited to the type of interface you gave the bookmarks script. bookmarks are a quick way to access your files and so's this. i don't really see why there's a need to take control of the placement, access, position, or duration out of the user's hands.
___
edit: over time i've come to prefer the original to the hacked version.
|
Back to top
|
|
 |
Puppus Dogfellow

Joined: 07 Jan 2013 Posts: 1669 Location: nyc
|
Posted: Mon 11 May 2015, 22:03 Post subject:
|
|
Mochi, neither this nor the speed dials script works in fatdog. is there a workaround? i don't get error codes--neither launches, but both are there according to the which command. any ideas?
edit: wmctrl in fatdog is all kinds of messed up...
|
Back to top
|
|
 |
MochiMoppel

Joined: 26 Jan 2011 Posts: 2084 Location: Japan
|
Posted: Sat 06 Jun 2015, 21:43 Post subject:
|
|
I looked into it and found that this is caused by the pidof command. Fatdog doesn't use the BusyBox pidof. Fatdog's pidof (version says "procps-ng 3.3.9") uses different command line parameters. I can change the script so that it pleases all (?) Puppy flavors, but then comes the real show stopper. Wmctrl, the version in the fatdog repository, is indeed bug infested. Unreliable at best and and therefore not usable. Sorry, no WinSwitcher for fatdog.
|
Back to top
|
|
 |
Puppus Dogfellow

Joined: 07 Jan 2013 Posts: 1669 Location: nyc
|
Posted: Thu 25 Jun 2015, 02:20 Post subject:
|
|
MochiMoppel wrote: | I looked into it and found that this is caused by the pidof command. Fatdog doesn't use the BusyBox pidof. Fatdog's pidof (version says "procps-ng 3.3.9") uses different command line parameters. I can change the script so that it pleases all (?) Puppy flavors, but then comes the real show stopper. Wmctrl, the version in the fatdog repository, is indeed bug infested. Unreliable at best and and therefore not usable. Sorry, no WinSwitcher for fatdog. |
i tried it in quirky april 7041 64bit and it runs but seems to omit some windows (one out of 8 rox windows, no libreoffice, all the xpad showed up...). not at the machine, but i think the wmctrl readout for desktops and windows was off from what it should've been. it can reposition and resize okay, though.
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|