mirror of
https://github.com/SeriousBug/dotfiles
synced 2024-11-13 16:27:28 -06:00
4 lines
327 B
Fish
4 lines
327 B
Fish
function sway-prop --wraps=swaymsg\ -t\ get_tree\ \|\ jq\ \'..\ \|\ select\(.type\?\)\ \|\ select\(.focused==true\)\' --description alias\ sway-prop\ swaymsg\ -t\ get_tree\ \|\ jq\ \'..\ \|\ select\(.type\?\)\ \|\ select\(.focused==true\)\'
|
|
swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true)' $argv;
|
|
end
|