Cascade & Tile Desktop Windows

Forum Forums General Tips and Tricks Cascade & Tile Desktop Windows

Tagged: , ,

  • This topic has 4 replies, 3 voices, and was last updated Mar 28-5:38 pm by sleekmason.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7891
    Member
    sleekmason

      I found a script to provide tiling and cascade funtions for desktop windows use.
      The original, “winfuncs.sh” script can be found here: http://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!

      #8151
      Anonymous

        Thanks!
        “cascade” is a great addition (much better than the alt+Tab’ing I’ve grown accustomed to using)

        #8332
        Member
        sleekmason

          Thank you! Learned a bunch getting this to work.

          #8374
          Forum 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

            #8395
            Member
            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.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.