nixos-config/private_dot_config/sway/scripts/executable_btn_extra.sh
2024-10-22 11:53:19 -04:00

10 lines
240 B
Bash

#!/bin/bash
running_app=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]?) | select(.focused==true) | .app_id')
if [ "$running_app" = "anki" ]; then
echo "kitty open found 😇"
else
echo "no kitty 😿"
echo "but ${running_app}"
fi