-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(wm): border renames and aliases, ahk example
This commit renames a number of border-related code refs, removing the ActiveWindow prefix since these borders are no longer just for the active window. Aliases have been added to preserve backwards compat for existing configs. An example AHK configuration file has been added to the Common Workflows section of the docs site. A link to the docs site has been added to the output of komorebic start. A note has been added recommending that users disable system animations for the best experience in the Getting Started guide.
- Loading branch information
Showing
25 changed files
with
330 additions
and
237 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# border-colour | ||
|
||
``` | ||
Set the colour for a window border kind | ||
Usage: komorebic.exe border-colour [OPTIONS] <R> <G> <B> | ||
Arguments: | ||
<R> | ||
Red | ||
<G> | ||
Green | ||
<B> | ||
Blue | ||
Options: | ||
-w, --window-kind <WINDOW_KIND> | ||
[default: single] | ||
[possible values: single, stack, monocle, unfocused] | ||
-h, --help | ||
Print help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# border-offset | ||
|
||
``` | ||
Set the border offset | ||
Usage: komorebic.exe border-offset <OFFSET> | ||
Arguments: | ||
<OFFSET> | ||
Desired offset of the window border | ||
Options: | ||
-h, --help | ||
Print help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# border-width | ||
|
||
``` | ||
Set the border width | ||
Usage: komorebic.exe border-width <WIDTH> | ||
Arguments: | ||
<WIDTH> | ||
Desired width of the window border | ||
Options: | ||
-h, --help | ||
Print help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
# AutoHotKey | ||
|
||
<!-- TODO: Update this completely --> | ||
|
||
If you would like to use Autohotkey, please make sure you have AutoHotKey v2 | ||
installed. | ||
|
||
Generally, users who opt for AHK will have specific needs that can only be | ||
addressed by the advanced functionality of AHK, and so they are assumed to be | ||
able to craft their own configuration files. | ||
|
||
If you would like to try out AHK, a simple sample configuration powered by | ||
`komorebic.lib.ahk` is provided as a starting point. This sample configuration | ||
does not take into account the use of a static configuration file; if you | ||
choose to use a static configuration file alongside AHK, you can remove all the | ||
configuration options from your `komorebi.ahk` and use it solely to handle | ||
hotkey bindings. | ||
|
||
|
||
```powershell | ||
# save the latest generated komorebic library to ~/komorebic.lib.ahk | ||
iwr https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.20/komorebic.lib.ahk -OutFile $Env:USERPROFILE\komorebic.lib.ahk | ||
If you would like to try out AHK, here is a simple sample configuration which | ||
largely matches the `whkdrc` sample configuration. | ||
|
||
# save the sample komorebi configuration file to ~/komorebi.ahk | ||
iwr https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.20/komorebi.sample.ahk -OutFile $Env:USERPROFILE\komorebi.ahk | ||
``` | ||
{% include "../komorebi.ahk" %} | ||
``` | ||
|
||
By default, the `komorebi.ahk` file should be located in the `$Env:USERPROFILE` | ||
directory, however, if `$Env:KOMOREBI_CONFIG_HOME` is set, it should be located | ||
there. | ||
|
||
Once the file is in place, you can stop komorebi and whkd by running `komorebic stop --whkd`, | ||
and then start komorebi with Autohotkey by running `komorebic start --ahk`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Borders | ||
|
||
If you would like to add a visual border around both the currently focused window | ||
and unfocused windows ensure the following options are defined in the `komorebi.json` | ||
configuration file. | ||
|
||
```json | ||
{ | ||
"border": true, | ||
"border_width": 8, | ||
"border_offset": -1, | ||
"border_style": "System", | ||
"border_colours": { | ||
"single": "#42a5f5", | ||
"stack": "#00a542", | ||
"monocle": "#ff3399", | ||
"unfocused": "#808080" | ||
} | ||
} | ||
``` | ||
|
||
It is important to note that borders will only apply to windows managed by `komorebi`. | ||
|
||
This feature is not considered stable, and you may encounter visual artifacts | ||
from time to time. | ||
|
||
[![Watch the tutorial | ||
video](https://img.youtube.com/vi/7_9D22t7KK4/hqdefault.jpg)](https://www.youtube.com/watch?v=7_9D22t7KK4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.