瀏覽代碼

window is no longer hoog

master
whut 2 年之前
父節點
當前提交
3b27189081
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      tooner.sh

+ 4
- 4
tooner.sh 查看文件

@@ -33,11 +33,11 @@ done

[ "${#names[@]}" -lt 10 ] && l=${#names[@]} || l=10

choice=`echo "${names[*]}" | rofi -i -dmenu -format i -mesg "<small>$nowPlaying</small>" -l $l -width -$width -location 7 -p "Radio" -no-custom -select $last`
choice=`echo "${names[*]}" | rofi -i -dmenu -format i -mesg "<small>$nowPlaying</small>" -l $l -width -$width -location 7 -p "Radio" -no-custom -select $last -theme-str "#window { width: 50ch; }"`

if [ ! -z "$choice" ]; then
mpc clear
mpc add ${urls[choice]}
mpc play
mpc clear > /dev/null
mpc add ${urls[choice]} > /dev/null
mpc play > /dev/null
echo ${names[choice]} > $lastFile
fi

Loading…
取消
儲存