Forum › Forums › General › Tips and Tricks › Cascade & Tile Desktop Windows
- This topic has 4 replies, 3 voices, and was last updated Mar 28-5:38 pm by sleekmason.
-
AuthorPosts
-
March 18, 2018 at 8:31 am #7891Member
sleekmason
I found a script to provide tiling and cascade funtions for desktop windows use.
The original, “winfuncs.sh” script can be found here: https://forum.xfce.org/viewtopic.php?id=6841
–
I’ve changed nothing from the original. I also set up a couple of scripts to toggle between options. These are not neccesary in order to use winfuncs.sh. Just extras I created to use with winfuncs.sh.
–
Winfuncs.sh needs three programs in order to work properly:
apt-get install wmctrl xwininfo xdotool
–
To use winfuncs.sh, place the Script in /usr/local/bin and make sure to make it executable.
–
An Example For fluxbox menu might be:
[exec] (Cascade) {winfuncs.sh cascade}
–
And for keys:
Control Mod4 z :ExecCommand winfuncs.sh cascade
–
In ~/.fluxbox/keys (there is also a menu link to the /keys file), you can change whatever you want providing you dont try using the same key for two different uses. Only the latter will apply.
–
–
As a side note, if you are using fluxbox you don’t need this script to “showdesktop”. Fluxbox provides for this using:
[exec] (Show Desktop) {fluxbox-remote ShowDesktop}
So for just showing the desktop from the menu, no scripts required!
–
There are five options to the winfuncs.sh script:
tile
cascade
tiletwo
select
showdesktop
–
–
The extra scripts:
Toggletile script, “tile” and “cascade” will toggle back and forth.
–
Cascade.sh script, toggle through “tile” “cascade”, and “showdesktop” (and then stopping there). There is probably a way to keep it cycling through, but I haven’t figured that out yet. Maybe getopts?:)
–
The script isn’t perfect. In tile, you can see where the bottom edges overlap the taskbar. The “cascade” option is my favorite and works well. Enjoy!
–March 22, 2018 at 11:23 am #8151Anonymous
::Thanks!
“cascade” is a great addition (much better than the alt+Tab’ing I’ve grown accustomed to using)March 26, 2018 at 3:58 am #8332Member
sleekmason
March 27, 2018 at 7:43 pm #8374Forum Admin
Dave
::This looks interesting.
Will need to give it a go, it looks like it would fit well with the pre-installed wingrid scripts. Perhaps they could be joined together into one project pack.Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
March 28, 2018 at 5:38 pm #8395Member
sleekmason
::Yes, very handy. The only thing I couldn’t accomplish was getting the whole thing to cycle over and over every time you hit a key (tile, cascade, desktop, tile, cascade, desktop . . . .). It is beyond me to get it cycled back from desktop to tile.
-
AuthorPosts
- You must be logged in to reply to this topic.

