mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
This commit adds a simple egui helper application which shows a list of shortcuts defined in a user's whkdrc file. Parsing AHK files is not supported. In addition to listing out shortcuts defined in the whkdrc file, the top line allows users to add filter a filter to narrow down the list of commands and key bindings to the ones they are interested in. A new komorebic command "toggle-shortcuts" has been introduced which will first attempt to kill "komorebi-shortcuts.exe", and then exit if the kill signal was successful (ie. a process was closed), or proceed to open "komorebi-shortcuts.exe" if the kill signal was not successful (ie. no process was closed, so we should open one). "komorebi-shortcuts.exe" has been added as a floating application in lib.rs to allow for users to use the "komorebic move" command to manipulate its position via their existing keyboard bindings.
79 lines
3.2 KiB
Plaintext
79 lines
3.2 KiB
Plaintext
.shell powershell
|
|
|
|
# Reload whkd configuration
|
|
# alt + o : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd
|
|
alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell
|
|
alt + shift + o : komorebic reload-configuration
|
|
|
|
alt + i : komorebic toggle-shortcuts
|
|
|
|
# App shortcuts - these require shell to be pwsh / powershell
|
|
# The apps will be focused if open, or launched if not open
|
|
# alt + f : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox }
|
|
# alt + b : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome }
|
|
|
|
alt + q : komorebic close
|
|
alt + m : komorebic minimize
|
|
|
|
# Focus windows
|
|
alt + h : komorebic focus left
|
|
alt + j : komorebic focus down
|
|
alt + k : komorebic focus up
|
|
alt + l : komorebic focus right
|
|
alt + shift + oem_4 : komorebic cycle-focus previous # oem_4 is [
|
|
alt + shift + oem_6 : komorebic cycle-focus next # oem_6 is ]
|
|
|
|
# Move windows
|
|
alt + shift + h : komorebic move left
|
|
alt + shift + j : komorebic move down
|
|
alt + shift + k : komorebic move up
|
|
alt + shift + l : komorebic move right
|
|
alt + shift + return : komorebic promote
|
|
|
|
# Stack windows
|
|
alt + left : komorebic stack left
|
|
alt + down : komorebic stack down
|
|
alt + up : komorebic stack up
|
|
alt + right : komorebic stack right
|
|
alt + oem_1 : komorebic unstack # oem_1 is ;
|
|
alt + oem_4 : komorebic cycle-stack previous # oem_4 is [
|
|
alt + oem_6 : komorebic cycle-stack next # oem_6 is ]
|
|
|
|
# Resize
|
|
alt + oem_plus : komorebic resize-axis horizontal increase
|
|
alt + oem_minus : komorebic resize-axis horizontal decrease
|
|
alt + shift + oem_plus : komorebic resize-axis vertical increase
|
|
alt + shift + oem_minus : komorebic resize-axis vertical decrease
|
|
|
|
# Manipulate windows
|
|
alt + t : komorebic toggle-float
|
|
alt + shift + f : komorebic toggle-monocle
|
|
|
|
# Window manager options
|
|
alt + shift + r : komorebic retile
|
|
alt + p : komorebic toggle-pause
|
|
|
|
# Layouts
|
|
alt + x : komorebic flip-layout horizontal
|
|
alt + y : komorebic flip-layout vertical
|
|
|
|
# Workspaces
|
|
alt + 1 : komorebic focus-workspace 0
|
|
alt + 2 : komorebic focus-workspace 1
|
|
alt + 3 : komorebic focus-workspace 2
|
|
alt + 4 : komorebic focus-workspace 3
|
|
alt + 5 : komorebic focus-workspace 4
|
|
alt + 6 : komorebic focus-workspace 5
|
|
alt + 7 : komorebic focus-workspace 6
|
|
alt + 8 : komorebic focus-workspace 7
|
|
|
|
# Move windows across workspaces
|
|
alt + shift + 1 : komorebic move-to-workspace 0
|
|
alt + shift + 2 : komorebic move-to-workspace 1
|
|
alt + shift + 3 : komorebic move-to-workspace 2
|
|
alt + shift + 4 : komorebic move-to-workspace 3
|
|
alt + shift + 5 : komorebic move-to-workspace 4
|
|
alt + shift + 6 : komorebic move-to-workspace 5
|
|
alt + shift + 7 : komorebic move-to-workspace 6
|
|
alt + shift + 8 : komorebic move-to-workspace 7
|