diff options
| author | bh <qn+git@epicurus.dev> | 2026-04-01 20:13:04 +0800 |
|---|---|---|
| committer | bh <qn+git@epicurus.dev> | 2026-04-01 20:13:04 +0800 |
| commit | 51db7939e8c6d4f2cf894963b874d649ec4c2ace (patch) | |
| tree | 0f7c83ada16d047f664de6eb9fc4c10bb74197cc /scripts/Scripts/run | |
| parent | edbbc94cad1137b77ce1bac0e0a28e52e1e8b6e4 (diff) | |
rofi: change run mode to dmenu mode
Diffstat (limited to 'scripts/Scripts/run')
| -rwxr-xr-x | scripts/Scripts/run | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Scripts/run b/scripts/Scripts/run index 24858ac..283fa21 100755 --- a/scripts/Scripts/run +++ b/scripts/Scripts/run @@ -1,2 +1,5 @@ #!/usr/bin/env bash -rofi -show run -theme ~/.config/rofi/rofirun.rasi +cmd=$(echo "" | rofi -dmenu -theme ~/.config/rofi/run.rasi -p "") +if [ -n "$cmd" ]; then + coproc ( eval "$cmd" > /dev/null 2>&1 ) +fi |
