sway-scratchpad

Convert a command to a scratchpad, and toggle visibility

Install

cargo install sway-scratchpad

Usage

``` Usage: sway-scratchpad [OPTIONS] --command --mark

Options: -s, --sock Sway/i3 socket path [default: /run/user/1000/sway-ipc.1000.2278443.sock] -c, --command Execute command -a, --arguments Execute command with this arguments --width Width of scratchpad in percent [default: 95] --height Height of scratchpad in percent [default: 90] -m, --mark Mark the container (executed command) with with this value -h, --help Print help -V, --version Print version ```

Example config

Put this in you sway config (~/.config/sway/config)

``` bindsym F12 exec sway-scratchpad --command kitty --mark terminal

forwindow [conmark="SCRATCHPAD_terminal"] border pixel 1 ```