mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-26 19:31:16 +01:00
This commit adds two new komorebic commands to quicksave and quickload
BSP layouts with custom resize dimensions. The quicksave file is stored
at ${Env:TEMP}/komorebi.quicksave.json, and is a Vec<Option<Rect>>
serialized to JSON.
If a user tries to quickload without a quicksave file being present, an
error will be logged.
At this point there is only one quicksave file which will always be
overwritten whenever the quicksave command is called. Both commands will
only operate on the focused workspace of the focused monitor.
This means that you can quicksave a layout on one workspace, and then
quickload it onto multiple other workspaces (individually) on the same
or other monitors.
If the number of elements in the deserialized Vec is greater than the
number of containers on a workspace, the Vec will be truncated when
Workspace.update is run, and similarly if the number of elements is less
than the number of containers on a workspace, the Vec will be extended
by the difference using None values.
resolve #39
206 lines
4.4 KiB
AutoHotkey
206 lines
4.4 KiB
AutoHotkey
; Generated by komorebic.exe
|
|
|
|
Start(ffm) {
|
|
Run, komorebic.exe start --ffm %ffm%, , Hide
|
|
}
|
|
|
|
Stop() {
|
|
Run, komorebic.exe stop, , Hide
|
|
}
|
|
|
|
State() {
|
|
Run, komorebic.exe state, , Hide
|
|
}
|
|
|
|
QuickSave() {
|
|
Run, komorebic.exe quick-save, , Hide
|
|
}
|
|
|
|
QuickLoad() {
|
|
Run, komorebic.exe quick-load, , Hide
|
|
}
|
|
|
|
Query(state_query) {
|
|
Run, komorebic.exe query %state_query%, , Hide
|
|
}
|
|
|
|
Log() {
|
|
Run, komorebic.exe log, , Hide
|
|
}
|
|
|
|
Focus(operation_direction) {
|
|
Run, komorebic.exe focus %operation_direction%, , Hide
|
|
}
|
|
|
|
Move(operation_direction) {
|
|
Run, komorebic.exe move %operation_direction%, , Hide
|
|
}
|
|
|
|
Stack(operation_direction) {
|
|
Run, komorebic.exe stack %operation_direction%, , Hide
|
|
}
|
|
|
|
Resize(edge, sizing) {
|
|
Run, komorebic.exe resize %edge% %sizing%, , Hide
|
|
}
|
|
|
|
Unstack() {
|
|
Run, komorebic.exe unstack, , Hide
|
|
}
|
|
|
|
CycleStack(cycle_direction) {
|
|
Run, komorebic.exe cycle-stack %cycle_direction%, , Hide
|
|
}
|
|
|
|
MoveToMonitor(target) {
|
|
Run, komorebic.exe move-to-monitor %target%, , Hide
|
|
}
|
|
|
|
MoveToWorkspace(target) {
|
|
Run, komorebic.exe move-to-workspace %target%, , Hide
|
|
}
|
|
|
|
SendToMonitor(target) {
|
|
Run, komorebic.exe send-to-monitor %target%, , Hide
|
|
}
|
|
|
|
SendToWorkspace(target) {
|
|
Run, komorebic.exe send-to-workspace %target%, , Hide
|
|
}
|
|
|
|
FocusMonitor(target) {
|
|
Run, komorebic.exe focus-monitor %target%, , Hide
|
|
}
|
|
|
|
FocusWorkspace(target) {
|
|
Run, komorebic.exe focus-workspace %target%, , Hide
|
|
}
|
|
|
|
NewWorkspace() {
|
|
Run, komorebic.exe new-workspace, , Hide
|
|
}
|
|
|
|
InvisibleBorders(left, top, right, bottom) {
|
|
Run, komorebic.exe invisible-borders %left% %top% %right% %bottom%, , Hide
|
|
}
|
|
|
|
AdjustContainerPadding(sizing, adjustment) {
|
|
Run, komorebic.exe adjust-container-padding %sizing% %adjustment%, , Hide
|
|
}
|
|
|
|
AdjustWorkspacePadding(sizing, adjustment) {
|
|
Run, komorebic.exe adjust-workspace-padding %sizing% %adjustment%, , Hide
|
|
}
|
|
|
|
ChangeLayout(layout) {
|
|
Run, komorebic.exe change-layout %layout%, , Hide
|
|
}
|
|
|
|
FlipLayout(flip) {
|
|
Run, komorebic.exe flip-layout %flip%, , Hide
|
|
}
|
|
|
|
Promote() {
|
|
Run, komorebic.exe promote, , Hide
|
|
}
|
|
|
|
Retile() {
|
|
Run, komorebic.exe retile, , Hide
|
|
}
|
|
|
|
EnsureWorkspaces(monitor, workspace_count) {
|
|
Run, komorebic.exe ensure-workspaces %monitor% %workspace_count%, , Hide
|
|
}
|
|
|
|
ContainerPadding(monitor, workspace, size) {
|
|
Run, komorebic.exe container-padding %monitor% %workspace% %size%, , Hide
|
|
}
|
|
|
|
WorkspacePadding(monitor, workspace, size) {
|
|
Run, komorebic.exe workspace-padding %monitor% %workspace% %size%, , Hide
|
|
}
|
|
|
|
WorkspaceLayout(monitor, workspace, value) {
|
|
Run, komorebic.exe workspace-layout %monitor% %workspace% %value%, , Hide
|
|
}
|
|
|
|
WorkspaceTiling(monitor, workspace, value) {
|
|
Run, komorebic.exe workspace-tiling %monitor% %workspace% %value%, , Hide
|
|
}
|
|
|
|
WorkspaceName(monitor, workspace, value) {
|
|
Run, komorebic.exe workspace-name %monitor% %workspace% %value%, , Hide
|
|
}
|
|
|
|
TogglePause() {
|
|
Run, komorebic.exe toggle-pause, , Hide
|
|
}
|
|
|
|
ToggleTiling() {
|
|
Run, komorebic.exe toggle-tiling, , Hide
|
|
}
|
|
|
|
ToggleFloat() {
|
|
Run, komorebic.exe toggle-float, , Hide
|
|
}
|
|
|
|
ToggleMonocle() {
|
|
Run, komorebic.exe toggle-monocle, , Hide
|
|
}
|
|
|
|
ToggleMaximize() {
|
|
Run, komorebic.exe toggle-maximize, , Hide
|
|
}
|
|
|
|
RestoreWindows() {
|
|
Run, komorebic.exe restore-windows, , Hide
|
|
}
|
|
|
|
Manage() {
|
|
Run, komorebic.exe manage, , Hide
|
|
}
|
|
|
|
Unmanage() {
|
|
Run, komorebic.exe unmanage, , Hide
|
|
}
|
|
|
|
ReloadConfiguration() {
|
|
Run, komorebic.exe reload-configuration, , Hide
|
|
}
|
|
|
|
WatchConfiguration(boolean_state) {
|
|
Run, komorebic.exe watch-configuration %boolean_state%, , Hide
|
|
}
|
|
|
|
FloatRule(identifier, id) {
|
|
Run, komorebic.exe float-rule %identifier% %id%, , Hide
|
|
}
|
|
|
|
ManageRule(identifier, id) {
|
|
Run, komorebic.exe manage-rule %identifier% %id%, , Hide
|
|
}
|
|
|
|
WorkspaceRule(identifier, id, monitor, workspace) {
|
|
Run, komorebic.exe workspace-rule %identifier% %id% %monitor% %workspace%, , Hide
|
|
}
|
|
|
|
IdentifyTrayApplication(identifier, id) {
|
|
Run, komorebic.exe identify-tray-application %identifier% %id%, , Hide
|
|
}
|
|
|
|
IdentifyBorderOverflow(identifier, id) {
|
|
Run, komorebic.exe identify-border-overflow %identifier% %id%, , Hide
|
|
}
|
|
|
|
FocusFollowsMouse(boolean_state, implementation) {
|
|
Run, komorebic.exe focus-follows-mouse %boolean_state% --implementation %implementation%, , Hide
|
|
}
|
|
|
|
ToggleFocusFollowsMouse(implementation) {
|
|
Run, komorebic.exe toggle-focus-follows-mouse --implementation %implementation%, , Hide
|
|
}
|
|
|
|
AhkLibrary() {
|
|
Run, komorebic.exe ahk-library, , Hide
|
|
}
|