From 60bae066b418b80d8e4fd9e144d65d1e9010d6f8 Mon Sep 17 00:00:00 2001 From: bh Date: Tue, 31 Mar 2026 18:30:41 +0800 Subject: rofi: add new run mode --- hypr/.config/hypr/hyprland.conf | 1 + rofi/.config/rofi/rofirun.rasi | 49 +++++++++++++++++++++++++++++++++++++++++ scripts/Scripts/run | 2 ++ 3 files changed, 52 insertions(+) create mode 100644 rofi/.config/rofi/rofirun.rasi create mode 100755 scripts/Scripts/run diff --git a/hypr/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf index 59e5caa..a09cb70 100644 --- a/hypr/.config/hypr/hyprland.conf +++ b/hypr/.config/hypr/hyprland.conf @@ -194,6 +194,7 @@ bind = $mainMod, E, exec, emacs # 📜 Scripts bind = $mainMod, V, exec, ~/Scripts/clipboard +bind = $mainMod, R, exec, ~/Scripts/run bind = $mainMod, S, exec, ~/Scripts/screenshot bind = $mainMod SHIFT, S, exec, ~/Scripts/screenshot snip diff --git a/rofi/.config/rofi/rofirun.rasi b/rofi/.config/rofi/rofirun.rasi new file mode 100644 index 0000000..82cc124 --- /dev/null +++ b/rofi/.config/rofi/rofirun.rasi @@ -0,0 +1,49 @@ +/******************************************************* + * 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/scripts/Scripts/run b/scripts/Scripts/run new file mode 100755 index 0000000..24858ac --- /dev/null +++ b/scripts/Scripts/run @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +rofi -show run -theme ~/.config/rofi/rofirun.rasi -- cgit v1.2.3