dotfiles/.local/bin/scripts/swaylist
2022-12-25 18:14:56 +01:00

3 lines
134 B
Bash
Executable file

#!/bin/sh -e
# TODO completion: tree, outputs, inputs, ...
unbuffer swaymsg -t get_$1 | (test "$1" = tree && jq -C || cat) | less -RF