summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbh <qn+git@epicurus.dev>2026-04-01 20:13:04 +0800
committerbh <qn+git@epicurus.dev>2026-04-01 20:13:04 +0800
commit51db7939e8c6d4f2cf894963b874d649ec4c2ace (patch)
tree0f7c83ada16d047f664de6eb9fc4c10bb74197cc
parentedbbc94cad1137b77ce1bac0e0a28e52e1e8b6e4 (diff)
rofi: change run mode to dmenu mode
-rw-r--r--rofi/.config/rofi/run.rasi (renamed from rofi/.config/rofi/rofirun.rasi)1
-rwxr-xr-xscripts/Scripts/run5
2 files changed, 4 insertions, 2 deletions
diff --git a/rofi/.config/rofi/rofirun.rasi b/rofi/.config/rofi/run.rasi
index 82cc124..0d19baa 100644
--- a/rofi/.config/rofi/rofirun.rasi
+++ b/rofi/.config/rofi/run.rasi
@@ -5,7 +5,6 @@
configuration {
font: "Noto Sans Nerd Font 10";
show-icons: false;
- display-run: "";
disable-history: false;
kb-cancel: "Super+c";
}
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