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

Command to close window picker #63

Open
avernan opened this issue Dec 22, 2015 · 2 comments
Open

Command to close window picker #63

avernan opened this issue Dec 22, 2015 · 2 comments

Comments

@avernan
Copy link

avernan commented Dec 22, 2015

Hello,

I'd like to add a keyboard shortcut to close the exposē mode back to the 'starting' situation, i.e. by selecting the window which is under the cursor when the window picker is activated.
I would also really like to bind this to the same key combination that I use to activate the window picker, but this is somewhat secondary.
Is there a (nice) way to do so? I can only think of emulating a mouse click, but this only works if the mouse pointer wasn't moved.

@javl
Copy link

javl commented May 25, 2016

One way to do this is to bind your key to a toggle script, instead of calling skippy-xd directly.

For example, bind your key to a file called something like skippy_toggle.sh with the following contents:

    #!/bin/sh
    # check if skippy-xd is in the list of running processes
    if ps ax | grep -v grep | grep "skippy-xd" > /dev/null
    then
        # it's already running, so kill it
        pkill skippy-xd
    else
       # it's not running, so start it
        /usr/bin/skippy-xd
    fi

@mustafaozhan
Copy link

mustafaozhan commented Jan 4, 2018

Hello,
I write to smilar script also

#! /bin/bash
if pgrep skippy-xd; 
then 
	pkill skippy-xd; 
else 
	skippy-xd;
fi

But the problem is when it is active we are killing it. So for example if i have openned geddit and asume that i am writing something than i active skippy-xd than i have killed with this script geddit losing focus to type back.

The approach should not be killing it. When it is active if I press ESC at this time there is no problem. So we need to send an ESC signal instead of pkill. I tried several thing but couldn't success. Any idea welcomed.

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

No branches or pull requests

3 participants