Skip to content
home@dennisPersonal Website of Dennis Plöger
  • Home
  • Blog
  • Artist
  • Impressum
  • Datenschutzerklärung

MacOS Window Management using Hammerspoon

28. August 2018 0 comments Article Allgemein

Using a macOS laptop with various available screen configurations is cumbersome. MacOS tries its best to reset the application windows to the state the screens were attached last time, but some vendors seem to find ways to break that feature.

And there currently is no good window manager available, who supports windows on multiple spaces on multiple screens.

With this in mind, Hammerspoon enters the state. Hammerspoon is an automation framework, that’s basically a bridge of macOS core management features (like keyboard and mouse handling, window management, etc.) to Lua.

There’s a single configuration file that can do various things. Additionally, there’s a library for it that allows spaces management, which still seems to be a big problem for applications.

So I wrote some Lua code to do my window management stuff:

  • Identify application windows
  • put them on the right screen
  • put them on the right space
  • maximize them

For a reference to others and a backup for me, I published that on Github.

Have fun.

PDF
Tags: hammerspoon, lua, macos, spaces, window management

Schreibe einen Kommentar Antworten abbrechen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

Calendar

März 2023
M D M D F S S
« Apr    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Archive

  • April 2021
  • März 2021
  • September 2020
  • Dezember 2019
  • November 2019
  • Oktober 2019
  • Juli 2019
  • Juni 2019
  • Mai 2019
  • April 2019
  • März 2019
  • September 2018
  • August 2018
  • Juli 2018
  • März 2018
  • Januar 2018
  • Dezember 2017
  • September 2017
  • März 2017
  • Februar 2017
  • Januar 2017
  • August 2016
  • Mai 2016
  • Dezember 2015
  • November 2015
  • August 2015
  • März 2015
  • Dezember 2014
  • September 2014
  • August 2014
  • Juli 2014
  • Februar 2014
  • Oktober 2013
  • September 2013
  • August 2013
  • Juli 2013
  • Juni 2013
  • Mai 2013
  • April 2013
  • November 2012
  • Oktober 2012
  • September 2012
  • August 2012
  • Juni 2012
  • Mai 2012
  • März 2012
  • Februar 2012
  • Januar 2012
  • November 2011
  • Juli 2011
  • Juni 2011
  • März 2011
  • Februar 2011
  • Januar 2011
  • Dezember 2010
  • November 2010
  • April 2010
  • Februar 2010

Kategorien

  • Allgemein

Neueste Beiträge

  • Github Action for the Godot Asset library
  • Announcing EgoVenture
  • The third installment of my learning project
  • So I released an Adventure Game
  • Feather > Sword

Schlagwörter

administration apache blog commit configuration configuration management development dhcp django documentation dokuwiki extension html ip java javascript keyboard lbows linux log migration netdot networks news php plugin printer python rest server shortcut skd sles soap social ssh survey twitter ubuntu udev vmware website zimbra zimlet zimlets

Meta

  • Anmelden
  • Beitrags-Feed (RSS)
  • Kommentare als RSS
  • WordPress.org

Copyright (c) Dennis Plöger | Theme by ThemeinProgress | Proudly powered by WordPress

Zum Ändern Ihrer Datenschutzeinstellung, z.B. Erteilung oder Widerruf von Einwilligungen, klicken Sie hier: Einstellungen