mirror of
https://codeberg.org/scip/swayipc.git
synced 2025-12-16 20:20:56 +01:00
add descratch readme
This commit is contained in:
15
_examples/descratch/README.md
Normal file
15
_examples/descratch/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
This is a more practical example. With sway you can move windows to
|
||||
a "scratchpad", i.e. like iconify it. There may be an official way
|
||||
to get back such windows, but I didn't find a good one. There's the
|
||||
"scratchpad show" command, but it doesn't allow you to select a
|
||||
window, it just shows the next one (and it keeps it in the floating
|
||||
state).
|
||||
|
||||
So, this example program lists all windows currently garaged on the
|
||||
scratchpad. When called with a windows id, it gets back the window
|
||||
to the current workspace and gives it focus - thus descratching it.
|
||||
|
||||
To add comfort to the process I added a small script which you can
|
||||
use as a ui to it. It uses rofi which makes a handy ui. To use it,
|
||||
compile descratch with "go build", copy the descratch binary to
|
||||
some location within your $PATH and run the script.
|
||||
Reference in New Issue
Block a user