koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.33k stars 210 forks source link

yabai + skhd not working #253

Closed alexgulbrandsen closed 1 year ago

alexgulbrandsen commented 1 year ago

Hello! I have installed yabai and skhd, but I can´t get the keyboard shortcuts to work. What might be the issue?

root-host commented 1 year ago

same here skhd not working my config is in home folder and i even try in .config/skhd/skhdrc same think skhd don't work

mac os 13.2.1

YootTanA commented 1 year ago

Can you show me your yabairc and skhdrc file? Or Can you try brew services restart yabai and brew services restart skhd after you edited your rc files?

I just installed them both minutes ago and they worked perfectly fine.

mac os Monterey 12.5

root-host commented 1 year ago

Can you show me your yabairc and skhdrc file? Or Can you try brew services restart yabai and brew services restart skhd after you edited your rc file?

I just installed them both minutes ago and they worked perfectly fine.

i used this tutorial,yabai works fine just skhd don't work

https://www.josean.com/posts/yabai-setup

YootTanA commented 1 year ago

This is the same configuration I am using. I have tried alt - <h,j,k.l> (for mac keyboard layout I press option button then h,j,k,l) to move to the target desktop and it works.

Which features of skhd you have tried and it did not work?

I'll try further and let you know if it doesn't work too.

root-host commented 1 year ago

now it's working, i remove skhdrc file uninstalled skhd rebooted mac stopped the yabai installed skhd make a new skhdrc in .config/skhd started yabai and skhd and now skhd working.

YootTanA commented 1 year ago

That's great.

YootTanA commented 1 year ago

@alexgulbrandsen If your problem still remains please feel free to let me know.

root-host commented 1 year ago

That's great.

Thanks, one more question, what is the command in skhdrc to spawn new terminal?

YootTanA commented 1 year ago

Well, you can create a script and configure skhdrc to point at it.
Or You can simply set a iTerm Keys preferences (if you are using iTerm).

This following closed issue will show you the script https://github.com/koekeishiya/skhd/issues/20

Here is my command in skhdrc: alt - n : $HOME/Library/Scripts/<script_name>

Please let me know if it doesn't work.

teelahti commented 1 year ago

MacOS 13.2.1 broke skhd + yabai for me, too. Works after restart, no need to re-install skhd. I assume there is some change in MacOS that breaks skhd.

alexpopov commented 1 year ago

MacOS 13.2.1 broke skhd + yabai for me, too. Works after restart, no need to re-install skhd. I assume there is some change in MacOS that breaks skhd.

Can confirm restarting fixes it. Neither yabai nor skhd worked. I briefly attached a debugger and found that skhd would segfault because carbon.process_name was null and eventually gets dereferenced.

But why that happened for one boot cycle after updating to 13.2.1 I don't know.

maxcell commented 1 year ago

I've been having issues suddenly on MacOS 13.3 as well with skhd being broken. I have tried to restart my computer, restart the service (both stopping and starting manually and restarting). I even tried redoing the config file. Not certain what is up because everything was working just fine for awhile on 13.3 but all of a sudden stopped responding even though the service seems to be running.

Edit: Turns out it was just because I updated yabai and didn't make sure to update the sha in my for my scripting addition.

alexgulbrandsen commented 1 year ago

@alexgulbrandsen If your problem still remains please feel free to let me know.

I´ve got it to work, but after a restart it does not work anymore. Any suggestions?

YootTanA commented 1 year ago

Would you mind show me your scripts?

So I could investigate the problem.

szfkamil commented 1 year ago

I've been having the same issue with skhd not working no matter what, but yabai working just fine. Ventura 13.3

I uninstalled skhd, killed yabai, and am about to install skhd, and reboot my computer.

now it's working, i remove skhdrc file uninstalled skhd rebooted mac stopped the yabai installed skhd make a new skhdrc in .config/skhd started yabai and skhd and now skhd working.

Edit: Warning: Calling plist_options is deprecated! Use service.require_root instead. is this a relevant warning when installing skhd?

Edit 2: I have an incessant accesibility access pop-up now which won't disappear (along with the recording, I tried to restart with brew services restart and also restart my computer... I cannot even deny it! it keeps asking! I stopped the service, restarting the computer now, let's see if the pop-up appears.

I now come into an issue starting skhd, no matter how many times I reinstall it:

CleanShot 2023-04-05 at 15 19 17@2x

Please, help

darer commented 1 year ago

MacOS Ventura 13.3. Yabai works fine. Skhd service is started by brew, but none of the shortcuts work. Restarting the computer didn't help. Tried reinstalling and everything, but no luck.

szfkamil commented 1 year ago

MacOS Ventura 13.3. Yabai works fine. Skhd service is started by brew, but none of the shortcuts work. Restarting the computer didn't help. Tried reinstalling and everything, but no luck.

Basically, the same thing here. It's the issue with Ventura, then. It's now a matter of

alexpopov commented 1 year ago

MacOS Ventura 13.3. Yabai works fine. Skhd service is started by brew, but none of the shortcuts work. Restarting the computer didn't help. Tried reinstalling and everything, but no luck.

Basically, the same thing here. It's the issue with Ventura, then. It's now a matter of

  • do we wait or..
  • is there a workaround someone figures out?

Have you tried starting skhd manually, instead of using brew? That may print out some useful diagnostic information.

This will cause the browser to open Google any time you press '7'.

Run skhd manually with your temporary config, e.g.:

# use your temporary config
$(which skhd) --config /tmp/skhdrc_temp

Press '7' to see if Google opens.

Also, please double check that skhd appears in the list of System Settings > Privacy & Security > Accessibility

surt666 commented 1 year ago

I have the same problem that skhd is not working on 13.3. Used yabai from HEAD and that seems to work fine, to get around the Calling plist_options is deprecated bug. I also compiled skhd from source and tried that, but no luck. The minimal example above also doesn't work , but no errors anywhere I can find. Maybe I should add that it worked fine before, but had to redo some stuff because it was running under Rosetta, and I needed to get rid of that to compile specific pieces of software.

tknapen commented 1 year ago

MacOS Ventura 13.3. Yabai works fine. Skhd service is started by brew, but none of the shortcuts work. Restarting the computer didn't help. Tried reinstalling and everything, but no luck.

Basically, the same thing here. It's the issue with Ventura, then. It's now a matter of

  • do we wait or..
  • is there a workaround someone figures out?

Same here, just adding some info; running skhd -o in the terminal does register the keys (such as alt, etc.) and returns key codes. However, in any app, pressing alt - anything just returns non-ASCII symbols as if skhd is not "catching" the modifiers/keys before the system handles them.

lightbluepoppy commented 1 year ago

I spent hours trying to debug skhd not working at all. When I execute skhd -V it shows the error below.

skhd: successfully created pid-file..
skhd: using config '/Users/orcinus/.config/skhd/skhdrc'
hotkey :: #47 {
#47:1 undeclared identifier
skhd: watching files for changes:
    /Users/admin/.config/skhd/skhdrc

I just copy&pasted the code in the example. I found out that the example had unnecessary line breaks.

https://github.com/koekeishiya/skhd/blob/master/examples/skhdrc

Here's the corrected version.

skhdrc ```bash # NOTE(koekeishiya): A list of all built-in modifier and literal keywords can # be found at https://github.com/koekeishiya/skhd/issues/1 # # A hotkey is written according to the following rules: # # hotkey = '<' | # # mode = 'name of mode' | ',' # # action = '[' ']' | '->' '[' ']' # ':' | '->' ':' # ';' | '->' ';' # # keysym = '-' | # # mod = 'modifier keyword' | '+' # # key = | # # literal = 'single letter or built-in keyword' # # keycode = 'apple keyboard kVK_ values (0x3C)' # # proc_map_lst = * # # proc_map = ':' | '~' | # '*' ':' | '*' '~' # # string = '"' 'sequence of characters' '"' # # command = command is executed through '$SHELL -c' and # follows valid shell syntax. if the $SHELL environment # variable is not set, it will default to '/bin/bash'. # when bash is used, the ';' delimeter can be specified # to chain commands. # # to allow a command to extend into multiple lines, # prepend '\' at the end of the previous line. # # an EOL character signifies the end of the bind. # # -> = keypress is not consumed by skhd # # * = matches every application not specified in # # ~ = application is unbound and keypress is forwarded per usual, when specified in a # # NOTE(koekeishiya): A mode is declared according to the following rules: # # mode_decl = '::' '@' ':' | '::' ':' | # '::' '@' | '::' # # name = desired name for this mode, # # @ = capture keypresses regardless of being bound to an action # # command = command is executed through '$SHELL -c' and # follows valid shell syntax. if the $SHELL environment # variable is not set, it will default to '/bin/bash'. # when bash is used, the ';' delimeter can be specified # to chain commands. # # to allow a command to extend into multiple lines, # prepend '\' at the end of the previous line. # # an EOL character signifies the end of the bind. # add an on_enter command to the default mode # :: default : chunkc border::color 0xff775759 # # defines a new mode 'test' with an on_enter command, that captures keypresses # :: test @ : chunkc border::color 0xff24ccaa # # from 'default' mode, activate mode 'test' # cmd - x ; test # # from 'test' mode, activate mode 'default' # test < cmd - x ; default # # launch a new terminal instance when in either 'default' or 'test' mode # default, test < cmd - return : open -na /Applications/Terminal.app # application specific bindings # # cmd - n [ # "kitty" : echo "hello kitty" # * : echo "hello everyone" # "qutebrowser" : echo "hello qutebrowser" # "terminal" ~ # "finder" : false # ] # specify a file that should be included as an additional config-file. # treated as an absolutepath if the filename begins with '/' otherwise # the file is relative to the path of the config-file it was loaded from. # # .load "/Users/Koe/.config/partial_skhdrc" # .load "partial_skhdrc" # prevent skhd from monitoring events for specific applications. # # .blacklist [ # "kitty" # "terminal" # "qutebrowser" # ] # open terminal, blazingly fast compared to iTerm/Hyper cmd - return : /Applications/kitty.app/Contents/MacOS/kitty --single-instance -d ~ # open qutebrowser cmd + shift - return : ~/Scripts/qtb.sh # open mpv cmd - m : open -na /Applications/mpv.app $(pbpaste) # close focused window alt - w : chunkc tiling::window --close # focus window alt - h : chunkc tiling::window --focus west alt - j : chunkc tiling::window --focus south alt - k : chunkc tiling::window --focus north alt - l : chunkc tiling::window --focus east cmd - j : chunkc tiling::window --focus prev cmd - k : chunkc tiling::window --focus next # equalize size of windows shift + alt - 0 : chunkc tiling::desktop --equalize # swap window shift + alt - h : chunkc tiling::window --swap west shift + alt - j : chunkc tiling::window --swap south shift + alt - k : chunkc tiling::window --swap north shift + alt - l : chunkc tiling::window --swap east # move window shift + cmd - h : chunkc tiling::window --warp west shift + cmd - j : chunkc tiling::window --warp south shift + cmd - k : chunkc tiling::window --warp north shift + cmd - l : chunkc tiling::window --warp east # make floating window fill screen shift + alt - up : chunkc tiling::window --grid-layout 1:1:0:0:1:1 # make floating window fill left-half of screen shift + alt - left : chunkc tiling::window --grid-layout 1:2:0:0:1:1 # make floating window fill right-half of screen shift + alt - right : chunkc tiling::window --grid-layout 1:2:1:0:1:1 # create desktop, move window and follow focus shift + cmd - n : chunkc tiling::desktop --create;\ id=$(chunkc tiling::query --desktops-for-monitor $(chunkc tiling::query --monitor-for-desktop $(chunkc tiling::query --desktop id)));\ chunkc tiling::window --send-to-desktop $(echo ${id##* });\ chunkc tiling::desktop --focus $(echo ${id##* }) # create desktop and follow focus cmd + alt - n : chunkc tiling::desktop --create;\ id=$(chunkc tiling::query --desktops-for-monitor $(chunkc tiling::query --monitor-for-desktop $(chunkc tiling::query --desktop id)));\ chunkc tiling::desktop --focus $(echo ${id##* }) # destroy desktop cmd + alt - w : chunkc tiling::desktop --annihilate # fast focus desktop cmd + alt - x : chunkc tiling::desktop --focus $(chunkc get _last_active_desktop) cmd + alt - z : chunkc tiling::desktop --focus prev cmd + alt - c : chunkc tiling::desktop --focus next cmd + alt - 1 : chunkc tiling::desktop --focus 1 cmd + alt - 2 : chunkc tiling::desktop --focus 2 cmd + alt - 3 : chunkc tiling::desktop --focus 3 cmd + alt - 4 : chunkc tiling::desktop --focus 4 cmd + alt - 5 : chunkc tiling::desktop --focus 5 cmd + alt - 6 : chunkc tiling::desktop --focus 6 cmd + alt - 7 : chunkc tiling::desktop --focus 7 cmd + alt - 8 : chunkc tiling::desktop --focus 8 cmd + alt - 9 : chunkc tiling::desktop --focus 9 cmd + alt - 0 : chunkc tiling::desktop --focus 10 # send window to desktop and follow focus shift + cmd - x : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop); chunkc tiling::desktop --focus $(chunkc get _last_active_desktop) shift + cmd - z : chunkc tiling::window --send-to-desktop prev; chunkc tiling::desktop --focus prev shift + cmd - c : chunkc tiling::window --send-to-desktop next; chunkc tiling::desktop --focus next shift + cmd - 1 : chunkc tiling::window --send-to-desktop 1; chunkc tiling::desktop --focus 1 shift + cmd - 2 : chunkc tiling::window --send-to-desktop 2; chunkc tiling::desktop --focus 2 shift + cmd - 3 : chunkc tiling::window --send-to-desktop 3; chunkc tiling::desktop --focus 3 shift + cmd - 4 : chunkc tiling::window --send-to-desktop 4; chunkc tiling::desktop --focus 4 shift + cmd - 5 : chunkc tiling::window --send-to-desktop 5; chunkc tiling::desktop --focus 5 shift + cmd - 6 : chunkc tiling::window --send-to-desktop 6; chunkc tiling::desktop --focus 6 shift + cmd - 7 : chunkc tiling::window --send-to-desktop 7; chunkc tiling::desktop --focus 7 shift + cmd - 8 : chunkc tiling::window --send-to-desktop 8; chunkc tiling::desktop --focus 8 shift + cmd - 9 : chunkc tiling::window --send-to-desktop 9; chunkc tiling::desktop --focus 9 shift + cmd - 0 : chunkc tiling::window --send-to-desktop 10; chunkc tiling::desktop --focus 10 # focus monitor ctrl + alt - z : chunkc tiling::monitor -f prev ctrl + alt - c : chunkc tiling::monitor -f next ctrl + alt - 1 : chunkc tiling::monitor -f 1 ctrl + alt - 2 : chunkc tiling::monitor -f 2 ctrl + alt - 3 : chunkc tiling::monitor -f 3 # send window to monitor and follow focus ctrl + cmd - z : chunkc tiling::window --send-to-monitor prev; chunkc tiling::monitor -f prev ctrl + cmd - c : chunkc tiling::window --send-to-monitor next; chunkc tiling::monitor -f next ctrl + cmd - 1 : chunkc tiling::window --send-to-monitor 1; chunkc tiling::monitor -f 1 ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2 ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3 # increase region size shift + alt - a : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge west shift + alt - s : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge south shift + alt - w : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge north shift + alt - d : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge east # decrease region size shift + cmd - a : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge west shift + cmd - s : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge south shift + cmd - w : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge north shift + cmd - d : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge east # set insertion point for focused container ctrl + alt - f : chunkc tiling::window --use-insertion-point cancel ctrl + alt - h : chunkc tiling::window --use-insertion-point west ctrl + alt - j : chunkc tiling::window --use-insertion-point south ctrl + alt - k : chunkc tiling::window --use-insertion-point north ctrl + alt - l : chunkc tiling::window --use-insertion-point east # rotate tree alt - r : chunkc tiling::desktop --rotate 90 # mirror tree y-axis alt - y : chunkc tiling::desktop --mirror vertical # mirror tree x-axis alt - x : chunkc tiling::desktop --mirror horizontal # toggle desktop offset alt - a : chunkc tiling::desktop --toggle offset # toggle window fullscreen alt - f : chunkc tiling::window --toggle fullscreen # toggle window native fullscreen shift + alt - f : chunkc tiling::window --toggle native-fullscreen # toggle window parent zoom alt - d : chunkc tiling::window --toggle parent # toggle window split type alt - e : chunkc tiling::window --toggle split # toggle window fade alt - q : chunkc tiling::window --toggle fade # float / unfloat window and center on screen alt - t : chunkc tiling::window --toggle float;\ chunkc tiling::window --grid-layout 4:4:1:1:2:2 # toggle sticky alt - s : chunkc tiling::window --toggle sticky # toggle sticky, float and resize to picture-in-picture size alt - p : chunkc tiling::window --toggle sticky;\ chunkc tiling::window --grid-layout 5:5:4:0:1:1 # float next window to be tiled shift + alt - t : chunkc set window_float_next 1 # change layout of desktop ctrl + alt - a : chunkc tiling::desktop --layout bsp ctrl + alt - s : chunkc tiling::desktop --layout monocle ctrl + alt - d : chunkc tiling::desktop --layout float ctrl + alt - w : chunkc tiling::desktop --deserialize ~/.chunkwm_layouts/dev_1 ```

However, I found out that the example file is completely useless since this file calls chunkc function, not yabai function. Here is an example that works.

skhdrc example ```bash # focus window alt - x : yabai -m window --focus recent alt - h : yabai -m window --focus west alt - j : yabai -m window --focus south alt - k : yabai -m window --focus north alt - l : yabai -m window --focus east # swap window shift + alt - x : yabai -m window --swap recent shift + alt - h : yabai -m window --swap west shift + alt - j : yabai -m window --swap south shift + alt - k : yabai -m window --swap north shift + alt - l : yabai -m window --swap east # move window shift + cmd - h : yabai -m window --warp west shift + cmd - j : yabai -m window --warp south shift + cmd - k : yabai -m window --warp north shift + cmd - l : yabai -m window --warp east # move window shift + ctrl - a : yabai -m window --move rel:-20:0 shift + ctrl - s : yabai -m window --move rel:0:20 shift + ctrl - w : yabai -m window --move rel:0:-20 shift + ctrl - d : yabai -m window --move rel:20:0 # increase window size shift + alt - a : yabai -m window --resize left:-20:0 shift + alt - s : yabai -m window --resize bottom:0:20 shift + alt - w : yabai -m window --resize top:0:-20 shift + alt - d : yabai -m window --resize right:20:0 # decrease window size shift + cmd - a : yabai -m window --resize left:20:0 shift + cmd - s : yabai -m window --resize bottom:0:-20 shift + cmd - w : yabai -m window --resize top:0:20 shift + cmd - d : yabai -m window --resize right:-20:0 # rotate tree alt - r : yabai -m space --rotate 90 # mirror tree y-axis alt - y : yabai -m space --mirror y-axis # mirror tree x-axis alt - x : yabai -m space --mirror x-axis # toggle desktop offset alt - a : yabai -m space --toggle padding && yabai -m space --toggle gap # toggle window fullscreen zoom alt - f : yabai -m window --toggle zoom-fullscreen # toggle window native fullscreen shift + alt - f : yabai -m window --toggle native-fullscreen # toggle window split type alt - e : yabai -m window --toggle split # float / unfloat window and restore position # alt - t : yabai -m window --toggle float && /tmp/yabai-restore/$(yabai -m query --windows --window | jq -re '.id').restore 2>/dev/null || true alt - t : yabai -m window --toggle float && yabai -m window --grid 4:4:1:1:2:2 ```

Furthermore, when I execute skhd -P, zsh threw an error!

skhd -P
56.4633ms (init)
0.2578ms (parse_config)
23.7467ms (begin_eventtap)
80.5097ms (total_time)
1.2551ms (handle_keypress)
yabai-msg: failed to connect to socket..

And it turns out that I needed to brew services start yabai when skhd is not running. I just executed brew services start -all and yabai + skhd start working properly.

grandmasteri commented 1 year ago

I'm getting a similar issue as above. I had yabai running and installed skhd (brew install koekeishiya/formulae/skhd). Then ran skhd --start-service as instructed by the README and got this error:

Load failed: 5: Input/output error Try running launchctl bootstrap as root for richer errors.

When I run skhd -V I get this output:

skhd: could not lock pid-file! abort..

I've tried:

I am on MacOS Ventura 13.3.1 (a) if that helps at all.

Update: I don't know if this information is helpful at all but I tried installing skhd the git download way listed in the README (git clone https://github.com/koekeishiya/skhd; make install) and got this output:

make 1 rm -rf ./bin 2 mkdir -p ./bin 3 clang src/skhd.c -std=c99 -Wall -g -O0 -framework Cocoa -framework Carbon -framework CoreServices -o bin/skhd 4 In file included from src/skhd.c:32: 5 src/hotload.c:275:5: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations] 6 FSEventStreamScheduleWithRunLoop(hotloader->stream, 7 ^ 8 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1 138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here 9 FSEventStreamScheduleWithRunLoop( 10 ^ 11 src/skhd.c:435:35: warning: unused function 'connection_handler' [-Wunused-function] 12 static GLOBAL_CONNECTION_CALLBACK(connection_handler) 13 ^ 14 2 warnings generated.

Notice the "warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0". Considering the possible root cause of a change in MacOS 13 this might be a clue as to what is happening.

koekeishiya commented 1 year ago

Load failed: 5: Input/output error Try running launchctl bootstrap as root for richer errors.

https://github.com/koekeishiya/skhd/issues/264#issuecomment-1532968259

pencilcheck commented 1 year ago

same, it just sometimes suddenly decided that it shouldn't work, then it stops working. Try to relogin still doesn't work, I run with -V and none of them have issues like the posts before, but somehow none of the key mapping are triggering or doing anything. It was working before before the version upgrade, after the version upgrade nothing is working as smoothly as before.

koekeishiya commented 1 year ago

On newer versions of macOS the binary likely needs to be codesigned.

For yabai I ship pre-compiled binaries that are already codesigned. skhd does not come with pre-built binaries and must be codesigned by the user.

darer commented 1 year ago

On newer versions of macOS the binary likely needs to be codesigned.

For yabai I ship pre-compiled binaries that are already codesigned. skhd does not come with pre-built binaries and must be codesigned by the user.

Do you have any plans to ship pre-compiled binaries for skhd as well? And if you don't, could you (or anyone else) explain how we can codesign the binary?

koekeishiya commented 1 year ago

I would like skhd to work the same was as yabai (in terms of project management, changelogs, releases etc), but I am not particularly active these days; doing such a restructure takes quite a bit of time, so yeah don't get your hopes up.

For codesigning you can follow the introduction on this page from the yabai wiki, but replace yabai with skhd in the instructions: https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(from-HEAD)

AJAYK-01 commented 1 year ago

just deleting the skhd lock file in /private/tmp and starting skhd again with the command nohup skhd & worked for me

lmBored commented 1 year ago

just deleting the skhd lock file in /private/tmp and starting skhd again with the command nohup skhd & worked for me

you mean the skhd_master.pid right?

AJAYK-01 commented 1 year ago

just deleting the skhd lock file in /private/tmp and starting skhd again with the command nohup skhd & worked for me

you mean the skhd_master.pid right?

depends on your username, it would be like skhd_<username>.pid , so if your username is master, then yes

golioss1886 commented 11 months ago

just deleting the skhd lock file in /private/tmp and starting skhd again with the command nohup skhd & worked for me

It works for me. Thank you.

JagrajBenipal commented 10 months ago

Hey, just until 2 days ago, my skhdrc used to work fine, but not anymore. I don't think I changed anything in particular that caused it not to work. I deleted, stopped, reinstalled both yabai and skhd, but of no use. Yabai works perfectly fine, but I am not able to use the keymaps I defined in my skhdrc. The location is ~/.config/yabai/yabairc and ~/.config/skhd/skhdrc. Below is my skhdrc file:

alt - j : yabai -m window --focus south alt - k : yabai -m window --focus north alt - h : yabai -m window --focus west alt - l : yabai -m window --focus east

Now even if I restart both yabai and skhd, the mappings still don't work. Instead I get those symbols (ex. alt+j gives ∆).

I even tried replacing alt with any other key like ctrl, but it also didn't work. I also followed josean's tutorial about yabai again, that also didn't help. Although my skhdrc isn't working, I am not getting any errors.

Edit: I read AJAYK-01's reply. I didn't have any skhd lock file. So I just did "nohup skhd &" and it worked

shinyuta commented 5 months ago

This was also a problem for me on Sonoma 14.5 AYAYK-01's reply worked for me. Deleting the file in tmp and using the command. Now all the hotkeys work perfectly and it also fixed the skhd pop-up for accessability. 👍

Malachite40 commented 3 weeks ago

Doesn't seem to fix the issue for me :(