Przeglądaj źródła

Sync: 2026-04-18 15:18:18

Gabriel Capella 1 dzień temu
rodzic
commit
2268af2db9

+ 3 - 1
dots/.config/sway/scripts/bemenu-run-or-search.sh

@@ -5,7 +5,9 @@ result=$(compgen -c | sort -u | bemenu -l 10 -p "🔍" --counter always -c -W 0.
 
 [ -z "$result" ] && exit 0
 
-if command -v "${result%% *}" &>/dev/null; then
+if [[ "$result" == sp\ * ]]; then
+    exec alacritty -e spotify_player search "${result#sp }"
+elif command -v "${result%% *}" &>/dev/null; then
     exec $result
 else
     query=$(python3 -c "import urllib.parse, sys; print(urllib.parse.quote_plus(sys.argv[1]))" "$result")