1
0
Fork 0
mirror of https://github.com/SeriousBug/dotfiles synced 2024-12-22 19:09:57 -06:00
dotfiles/fish/functions/sway-prop.fish

4 lines
327 B
Fish
Raw Normal View History

2022-03-06 21:42:47 -06:00
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