From 3d7df6a5c8bde1187e5c87c9ef4a6d75f680224c Mon Sep 17 00:00:00 2001 From: ryangreenup Date: Fri, 24 Jul 2020 20:57:20 +1000 Subject: [PATCH] How to window Relocate --- docs/Misc/windows.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/Misc/windows.md diff --git a/docs/Misc/windows.md b/docs/Misc/windows.md new file mode 100644 index 0000000..ad141fe --- /dev/null +++ b/docs/Misc/windows.md @@ -0,0 +1,38 @@ +--- +title: Windows +--- + +# Windows +!!! note + Start this with `cadmus misc wa/wr` + +## What does it do + +This offers a fuzzy selection of windows just like rofi but in the terminal. + +## How Do I use it + +!!! warning + This requires [wmctrl](https://www.lesbonscomptes.com/recoll/) set up to index your notes directory. + +Run `cadmus misc wa` to activate a window or `cadmus misc wr` to relocate a window, a dialog will popup. + +Type to filter the popup and press Enter to activate that window. + +## When Would This Be Used + +This is good for when you're looking for a window but you don't want to use rofi for one reason or another. + +### Example + +#TODO + +## How does it Work + +This just uses `wmctrl` and `fzf` to filter through the windows like this: + +```bash + wmctrl -R "$(wmctrl -l | cut -f 5- -d " " | fzf)" + ``` + +