This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
niri msg action focus-window --id $(niri msg windows | grep -B 1 -A 1 "Title:" | tr '\n' ' ' | sed 's/--/\n/g' | choose 2:-1 | sed 's/://g' | sed 's/\"//g' | sed 's/Title//g' | sed 's/App ID//g' | choose -1 0 1:-2 | fuzzel --dmenu -w 200 | choose 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to your .bash_aliases file, requires zigup, jq, and fzf to be installed | |
zup() { | |
local selected_file | |
selected_file="$(zigup fetch-index | jq 'to_entries | map([.key]) | flatten | .[] | .' -r | fzf)" | |
if [ -n "$selected_file" ]; then | |
zigup "$selected_file" | |
fi | |
} |