Jump to content

Search the Community

Showing results for tags 'desktop window control'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting


  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 2 results

  1. Hello! I made an Alfred 3 workflow to search and switch between open windows in the system and Safari (and Chrome) tabs. More app-by-app support are (hopefully) coming. It is uses the companion native app, that's what makes it much faster than the other alternatives. https://github.com/mandrigin/AlfredSwitchWindows/releases Sierra only (at the moment). PS: Thanks to Emanuele Munafò and his "Windows Switcher" workflow for the inspiration.
  2. This is a direct port of my Mjolnir Workflow. Installing Hammerspoon is much simpler without any external modules needing to be installed. Everything is internal. This workflow is for running scripts using Hammerspoon to control your windows. This is just a sample of the things that can be done. Follow this layout and you can do many neat things with Hammerspoon. First off, download Hammerspoon from http://www.hammerspoon.org/. Once installed, run the "hs:install" to set the configuration file this workflow expects and reload Hammerspoon. After that, everything should just work. hs:install Configure Hammerspoon with the configuration file that this workflow needs. The original is backed up into the users home directory as hs.orig. hs:upgrade This will upgrade the hammerspoon configuration file instead of writing the main config file. This will work for all versions newer than version 1.4. hs:reload This tells Hammerspoon to reload the configuration file. hs:open This opens the Hammerspoon console to the foreground. hs:nup This nudges the current window up. hs:ndown This nudges the current window down. hs:nleft This nudges the current window to the left. hs:nright This nudges the current window to the right. hs:tcaff This toggles system caffenate. If the AnyBar workflow and program are installed, then an indicator is shown. If caffenate is active, red "zzz" will be shown. Otherwise, grey "zzz" are shown. hs:leftthirds This moves the current window to the left 1/3 of the screen. hs:rightthirds This moves the current window to the right 2/3 of the screen. hs:lefthalf This moves the current window to the left half of the screen. hs:righthalf This moves the current window to the right half of the screen. hs:tophalf This moves the current window to the top half of the screen. hs:bottomhalf This moves the current window to the bottom half of the screen. hs:fullScreen This moves the window to the maximum size on the screen. hs:minimize This minimizes the current window. hs:tzoom This toggles the system fullscreen on and off for the current window. This moves the window to it's own space taking up the entire screen. hs:running This will list all the running apps. You can then just select one to bring it to the front, select with alt key to hide it, select with ctrl key to unhide it, and select with the fn key to close the application. hs:snap This snaps the current window to the closes grid box area. hs:setgrid This requires you to put the x, y for a starting position in a 3x3 matrix for the current window. Then you give the width and height. Therefore, to move the current window to the upper left most block in a 3x3 matric, you would do "hs:setgrid 0, 0, 1, 1". There is also a hotkey set to this value as an example. hs:command Type in a command string and it will be sent to Hammerspoon directly! There is also an external trigger HammerspoonCommand that will pass whatever is sent in the trigger to Hammerspoon using the command processor as in "hs:command". This gives other workflows or scripts the ability to interact with Hammerspoon through Alfred. hs:expose This will list all applications. When an application is selected, it will show all of it's windows in a matrix on the screen and ask the user for the coordinates of the one to show. It will then put all the windows back to their original position and bring the one selected to the foreground. If the application has only one window, it will simply bring it to the front. I also created a hotkey for doing Expose on FoldingText. The user can create more in the same manner. Just be careful to get the name of the application correct! hs:last This command undoes the very last window move. This assumes all window movements were done with Hammerspoon and this workflow functions. This workflow is also set up with a Remote page as well. Have fun controlling your windows from your iPad or iPhone. Version: 1.4 Packal: http://www.packal.org/workflow/hammerspoon-workflow GitHub: https://github.com/raguay/MyAlfred
  • Create New...