dotfiles/.local/bin/scripts/swaylist

4 lines
134 B
Text
Raw Normal View History

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