jigish / slate

A window management application (replacement for Divvy/SizeUp/ShiftIt)
GNU General Public License v3.0
7.84k stars 510 forks source link

Allow App to be run in background [improvement] #77

Open leematos opened 12 years ago

leematos commented 12 years ago

Former spectacle user here, my favorite feature of spectacle was the run as background task. :) I like a tidy status bar and I'm giving slate a go.

jigish commented 12 years ago

Ah. Good call. I'll try and implement this soon.

pstadler commented 12 years ago

+1

toxinu commented 12 years ago

+1

nchase commented 11 years ago

+1

wincent commented 11 years ago

This would definitely be useful. I installed Slate for the first time a little over a month ago, used the menu while I was working out my config, and then haven't touched or even looked at the menu since then.

Awesome app, BTW.

notahat commented 11 years ago

+1

jhaals commented 11 years ago

+1

justincampbell commented 11 years ago

+:100:

kizzx2-demystdata commented 11 years ago

+1

ptdorf commented 10 years ago

+1

justincampbell commented 10 years ago

I'll put down $10 for someone to add this https://www.bountysource.com/issues/1065634-allow-app-to-be-run-in-background-improvement/bounties

larrybolt commented 10 years ago

@justincampbell do realise that there is an App for that called Bartender (http://www.macbartender.com/) which costs 15USD and does just that but for any app that doesn't support this natively, and you can define a keyboard shortcut to show an "extended menu".

My system bar for instance looks like this: screen shot 2013-11-05 at 21 13 24 (in the screenshot the extended menu is openend, normally it is closed)

hector commented 10 years ago

+1

jpsim commented 10 years ago

I just sent a PR with this functionality. Config key:

config menuBarIconHidden true

Menu Item:

image

jpsim commented 10 years ago

I don't usually recommend downloading executables from strangers (including myself), but if you can't wait, I've added a compiled version of my fix here.

I'd also like to know what @jigish thinks of this approach and why it hasn't received his attention yet :smile:.

cenkozan commented 10 years ago

Thank you very much. But I think there is something wrong. When I start slate with "config menuBarIconHidden true", slate is not working. But when I start with the command commented, and choose hide from the menu, slate is working. Please can you take a look?

jpsim commented 10 years ago

Works for me, not sure how to troubleshoot this either. Maybe paste your .slate config file here?

cenkozan commented 10 years ago

Oh. Thank you. It's here:

config defaultToCurrentScreen true config windowHintsShowIcons true config windowHintsIgnoreHiddenWindows true config windowHintsSpread true config menuBarIconHidden true bind e:cmd hint ASDFGHJKLQWERTYUIOPCVBN # use whatever keys you want bind g:cmd grid padding:5 0:6,2 1:8,3

bind s:alt focus 'Safari' bind o:alt focus 'Opera' bind v:alt focus 'MacVim' bind p:alt focus 'Preview' bind e:alt focus 'Evernote' bind x:alt focus 'MPlayerX' bind m:alt focus 'Mail' bind f:alt focus 'Finder' bind i:alt focus 'iTerm' bind c:alt focus 'Google Chrome' bind t:alt focus 'iTunes'

bind 2:ctrl snapshot snapshot1 save-to-disk bind 4:ctrl snapshot snapshot2 save-to-disk bind 1:ctrl activate-snapshot snapshot1 bind 3:ctrl activate-snapshot snapshot2

alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY alias middle move screenSizeX/2-windowSizeX/2;screenSizeY/2-windowSizeY/2 windowSizeX;windowSizeY alias middleSize move (screenSizeX-1100)/2;(screenSizeY-700)/2 1100;700 alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY alias topleft corner top-left resize:screenSizeX/2;screenSizeY/2 alias topright corner top-right resize:screenSizeX/2;screenSizeY/2 alias bottomleft corner bottom-left resize:screenSizeX/2;screenSizeY/2 alias bottomright corner bottom-right resize:screenSizeX/2;screenSizeY/2

bind 3:alt ${lefthalf} bind 5:alt ${full} bind 7:alt ${righthalf} bind 1:alt ${topleft} bind 2:alt ${bottomleft} bind 9:alt ${topright} bind 8:alt ${bottomright} bind 4:alt ${middleSize}

Edit: I'm sorry, I had to update the code. It's final now. Markdown made a mess out of the code.

jpsim commented 10 years ago

Well, it's not an issue with your config file, as Slate starts hidden as provided, but by commenting # config menuBarIconHidden true it starts normally.

So it's an issue with how Slate is compiled. Please make sure you're running the correct build.

cenkozan commented 10 years ago

There is some misunderstanding. What I mean is, slate starts hidden, but it's not working as in none of my keyboard shortcuts work when slate is started hidden.

hector commented 10 years ago

I'm on OSX 10.9 and is working hidden properly for me, but at first it wasn't. I had to go to System Preferences > Security > Accessibility and disable and enable again Slate. It probably has something to do with the replacement of the app if you had it already. Hope it is this!

cenkozan commented 10 years ago

Yes Hector, that's the issue. Thank both to you and to jpsim :)

chrissphinx commented 9 years ago

@jpsim awesome work, thanks so much for implementing this

hiberabyss commented 7 years ago

Is there any plan to merge the code into master branch?

Thanks!