Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relaunch amethyst with a hotkey #361

Closed
travs opened this issue Dec 2, 2015 · 7 comments · Fixed by #956
Closed

Relaunch amethyst with a hotkey #361

travs opened this issue Dec 2, 2015 · 7 comments · Fixed by #956

Comments

@travs
Copy link

travs commented Dec 2, 2015

I had a look through the issues but couldn't find anything with this suggestion, so apologies if it's already been covered.

I find my self often having to relaunch amethyst from the menu, for example, when I "un-minimize" an application's window. Would be easier if there was a keyboard-driven way to do this.

Trello Card

@JasonJAyalaP
Copy link

+1
I constantly relaunch because of firefox. It's ironic that there's no way to keep my tiling window manager working without the mouse!

@sdvim
Copy link

sdvim commented Feb 2, 2016

+1

@gwerbin
Copy link

gwerbin commented Feb 4, 2016

+1

In the meantime, it seems like this is possible with AppleScript

@yusefnapora
Copy link

Yeah, this would be great. It's also possible with a one-liner bash script:

#!/bin/bash

killall Amethyst && open -a Amethyst

save that somewhere (I put mine in ~/bin/relaunch-amethyst) and make it executable with chmod +x <filename>. Then you can bind it to a keystroke with your favorite tool.

@gwerbin
Copy link

gwerbin commented Oct 11, 2016

Good call. Could use Karabiner/Seil for that

@JasonJAyalaP
Copy link

Thank you, yusefnapora! Good temporary solution. I just created an Alfred workflow.

Relaunch Amethyst.alfredworkflow.zip

@erikw
Copy link

erikw commented Aug 15, 2019

This is a problem for me too as I use an external monitor which I connect/disconnect several times per day. Quite often Amethyst don't keep up to speed, especially by maximizing windows. Thus I need to relaunch the application manually.

  • Best solution: Amethyst is snappier to resize windows
  • Intermediation solution: keyboard shortcut for Amethyst menu bar icon > Relaunch Amethyst

Workaround with Applescript in Automator (from @gwerbin's answer)

on run {input, parameters}
	tell application "System Events" to tell process "Amethyst"
		tell menu bar item 1 of menu bar 1
			click
			click menu item "Relaunch Amethyst" of menu 1
		end tell
	end tell
	
	return input
end run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants