Skip to content

Commit

Permalink
feat(komorebi): migrate to static + whkd config
Browse files Browse the repository at this point in the history
  • Loading branch information
sitiom committed Sep 7, 2023
1 parent 85427b9 commit 7b3b97e
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 119 deletions.
6 changes: 6 additions & 0 deletions Reference.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Prerequisites

- bat
- delta
- fzf
Expand All @@ -9,20 +10,25 @@
- npm

### Linux

- sheldon
- zsh

### Windows

- oh-my-posh
- clink
- whkd

### Node

- [czg](https://cz-git.qbb.sh/cli/)
- @commitlint/config-conventional

### PowerShell

#### Modules

- PSFzf
- PSReadLine
- Terminal-Icons
Expand Down
11 changes: 11 additions & 0 deletions chezmoi/dot_config/komorebi/komorebi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/master/schema.json",
"app_specific_configuration_path": "$Env:USERPROFILE/.config/komorebi/applications.yaml",
"alt_focus_hack": true,
"window_hiding_behaviour": "Cloak",
"cross_monitor_move_behaviour": "Insert",
"mouse_follows_focus": false,
"active_window_border": false,
"default_container_padding": 3,
"default_workspace_padding": 3
}
73 changes: 73 additions & 0 deletions chezmoi/dot_config/whkdrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
.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

# Close window
alt + q : komorebic close

# 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
alt + 9 : komorebic focus-workspace 8

# 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
alt + shift + 9 : komorebic move-to-workspace 8
119 changes: 0 additions & 119 deletions chezmoi/komorebi.ahk

This file was deleted.

0 comments on commit 7b3b97e

Please sign in to comment.