浏览代码

Sync: 2026-04-18 15:26:39

Gabriel Capella 1 天之前
父节点
当前提交
c1ffcccbec
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1 3
      dots/.config/sway/scripts/bemenu-run-or-search.sh
  2. 1 1
      dots/.config/waybar/config

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

@@ -5,9 +5,7 @@ result=$(compgen -c | sort -u | bemenu -l 10 -p "🔍" --counter always -c -W 0.
 
 [ -z "$result" ] && exit 0
 
-if [[ "$result" == sp\ * ]]; then
-    exec alacritty -e spotify_player search "${result#sp }"
-elif command -v "${result%% *}" &>/dev/null; then
+if 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")

+ 1 - 1
dots/.config/waybar/config

@@ -150,7 +150,7 @@
         //"scroll-step": 1,
         "format": "{icon}  {volume}%",
         "format-bluetooth": "{icon}  {volume}%",
-        "format-muted": "",
+        "format-muted": "",
         "format-icons": {
             "headphones": "",
             "handsfree": "",