mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Keybindings don't work #182
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nothingnesses on GitHub (Feb 26, 2023).
Describe the bug
Pressing the keybindings set in "~/.config/whkdrc" don't do anything.
To Reproduce
Steps to reproduce the behavior:
alt+lto try to set focus to Notepad window to the right. Notice nothing happens.Expected behavior
Keybindings work, e.g., focus shifts to another window with
alt+l.Operating System
@ArnaudKunzi commented on GitHub (Feb 27, 2023):
I encounter the same issue on
@LGUG2Z commented on GitHub (Feb 27, 2023):
Please share your
whkrdcconfiguration files and the output from runningwhkddirectly on the command line so that we can get a clearer idea of what is happening.@nothingnesses commented on GitHub (Feb 27, 2023):
@LGUG2Z commented on GitHub (Feb 27, 2023):
It seems that you don't have
pwshon your system (this is the latest version that must be downloaded manually). Try setting your shell to eitherpowershellorcmd- these are both bundled with every Windows install.@nothingnesses commented on GitHub (Feb 27, 2023):
Ayup,
scoop install pwshseems to have done the trick, thanks! Perhaps that should be in the documentation? In any case, I'm happy to close the issue, unless @ArnaudKunzi is still encountering it?@LGUG2Z commented on GitHub (Feb 27, 2023):
I think I'll just update the example config to use
.shell powershellto avoid the issue altogether 😅@nothingnesses commented on GitHub (Feb 27, 2023):
@LGUG2Z Unrelated question, but how do I add more workspaces to komorebi? So far, only
alt+1,alt+2andalt+3work.I tried adding the following to whkdrc
then stopping and starting komorebi, but
alt+4doesn't seem to change workspaces.@LGUG2Z commented on GitHub (Feb 27, 2023):
The best way to go about this is probably to define all the workspaces for a monitor like this: https://github.com/LGUG2Z/komorebi/blob/master/komorebi.sample.ps1#L18
Then your keybinds for switching to workspaces can refer to the workspace names, eg, from my own config:
@nothingnesses commented on GitHub (Mar 1, 2023):
Thanks. That's what I tried to do before, but it doesn't seem to work. Here's my configuration:
komorebi.ps1
whkdrc
Please could you let me know if I'm doing something silly?
@LGUG2Z commented on GitHub (Mar 1, 2023):
Try
focused-named-workspaceinstead; thefocus-workspacecommand takes a zero-indexed integer that refers only to the list of workspaces on the currently focused monitor, whilefocus-named-workspacetakes a string that can refer to the name of any workspace on any monitor.