dotfiles/.local/bin/scripts/swaylist

4 lines
134 B
Plaintext
Raw Normal View History

2022-12-13 12:25:04 +00:00
#!/bin/sh -e
2022-12-25 07:25:38 +00:00
# TODO completion: tree, outputs, inputs, ...
unbuffer swaymsg -t get_$1 | (test "$1" = tree && jq -C || cat) | less -RF