mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-01-17 12:48:35 +01:00
How to window Relocate
This commit is contained in:
parent
6701856157
commit
3d7df6a5c8
38
docs/Misc/windows.md
Normal file
38
docs/Misc/windows.md
Normal file
@ -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 <kbd>Enter</kbd> 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)"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user