New backup 2025-03-20 14:00:03
This commit is contained in:
parent
b77cf6fb3e
commit
28a02ef568
1 changed files with 1 additions and 1 deletions
|
@ -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]}/}"
|
||||
|
|
Loading…
Add table
Reference in a new issue