From 51db7939e8c6d4f2cf894963b874d649ec4c2ace Mon Sep 17 00:00:00 2001 From: bh Date: Wed, 1 Apr 2026 20:13:04 +0800 Subject: rofi: change run mode to dmenu mode --- rofi/.config/rofi/rofirun.rasi | 49 ------------------------------------------ rofi/.config/rofi/run.rasi | 48 +++++++++++++++++++++++++++++++++++++++++ scripts/Scripts/run | 5 ++++- 3 files changed, 52 insertions(+), 50 deletions(-) delete mode 100644 rofi/.config/rofi/rofirun.rasi create mode 100644 rofi/.config/rofi/run.rasi diff --git a/rofi/.config/rofi/rofirun.rasi b/rofi/.config/rofi/rofirun.rasi deleted file mode 100644 index 82cc124..0000000 --- a/rofi/.config/rofi/rofirun.rasi +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************* - * RUN LAUNCHER - thin horizontal bar - *******************************************************/ - -configuration { - font: "Noto Sans Nerd Font 10"; - show-icons: false; - display-run: ""; - disable-history: false; - kb-cancel: "Super+c"; -} - -@import "~/.config/rofi/config.rasi" - -window { - background-color: @background; - border: 1px; - border-color: #19e0e0; - padding: 8px 16px; - width: 40%; - anchor: center; - location: center; -} -mainbox { - border: 0; - padding: 0; - children: [ inputbar ]; -} -inputbar { - spacing: 0; - text-color: @normal-foreground; - padding: 2px; - children: [ prompt,textbox-prompt-colon,entry ]; -} -prompt { - spacing: 0; - text-color: @normal-foreground; -} -textbox-prompt-colon { - expand: false; - str: ">"; - margin: 0px 0.5em 0em 0em; - text-color: #FFC600; - text-transform: bold; -} -entry { - spacing: 0; - text-color: @normal-foreground; -} diff --git a/rofi/.config/rofi/run.rasi b/rofi/.config/rofi/run.rasi new file mode 100644 index 0000000..0d19baa --- /dev/null +++ b/rofi/.config/rofi/run.rasi @@ -0,0 +1,48 @@ +/******************************************************* + * RUN LAUNCHER - thin horizontal bar + *******************************************************/ + +configuration { + font: "Noto Sans Nerd Font 10"; + show-icons: false; + disable-history: false; + kb-cancel: "Super+c"; +} + +@import "~/.config/rofi/config.rasi" + +window { + background-color: @background; + border: 1px; + border-color: #19e0e0; + padding: 8px 16px; + width: 40%; + anchor: center; + location: center; +} +mainbox { + border: 0; + padding: 0; + children: [ inputbar ]; +} +inputbar { + spacing: 0; + text-color: @normal-foreground; + padding: 2px; + children: [ prompt,textbox-prompt-colon,entry ]; +} +prompt { + spacing: 0; + text-color: @normal-foreground; +} +textbox-prompt-colon { + expand: false; + str: ">"; + margin: 0px 0.5em 0em 0em; + text-color: #FFC600; + text-transform: bold; +} +entry { + spacing: 0; + text-color: @normal-foreground; +} 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 -- cgit v1.2.3