New backup 2025-03-20 14:00:03

This commit is contained in:
Penelope Gwen 2025-03-20 14:00:03 -07:00
parent b77cf6fb3e
commit 28a02ef568

View file

@ -6,7 +6,7 @@ titles=(" — Alacritty" " — LibreWolf" " — LibreOffice Calc" " — LibreOff
icons=(" " " " " " " " " " " " " " " " "")
function get_window_name() {
output=$(swaymsg -t get_tree | jq -r '.. | (.nodes? // empty)[] | select(.focused==true).name')
output=$(swaymsg -t get_tree | jq -r '.. | select(.type?) | select(.focused==true).name')
for s in "${!titles[@]}";do
if [[ "${output}" == *"${titles[${s}]}"* ]]; then
output="${output/${titles[s]}/}"