From ad538922f3e254e2c4e5acaea529d623c90d4f68 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Fri, 6 Feb 2026 13:34:14 -0500 Subject: Fixed rofi cli apps starting from xterm Now the default terminal is Kitty On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md new file: config/rofi/00-terminal.rasi modified: config/rofi/config.rasi --- CHANGELOG.md | 3 +++ config/rofi/00-terminal.rasi | 8 ++++++++ config/rofi/config.rasi | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 config/rofi/00-terminal.rasi diff --git a/CHANGELOG.md b/CHANGELOG.md index bd92969b..edef87c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ - `ALT + S` Saves to clipboard and `~/Pictures/Screenshots/` - Not all keyboards have `PrtScr` button - `hyprshot.sh` is fast, simple, no system bell sound +- Fixed start CLI apps from rofi like `htop`, `btop` being started with `xterm` + - This made the apps run in light mode with tiny fonts + - Now they are started with `kitty` ## v2.3.20 diff --git a/config/rofi/00-terminal.rasi b/config/rofi/00-terminal.rasi new file mode 100644 index 00000000..ab98f4eb --- /dev/null +++ b/config/rofi/00-terminal.rasi @@ -0,0 +1,8 @@ +/* Global Rofi runtime configuration overrides + * Ensures terminal-based apps launched from drun/run use kitty instead of xterm. + */ +configuration { + terminal: "kitty"; + // keep run-shell explicit to avoid theme overrides changing behavior + run-shell-command: "{terminal} -e {cmd}"; +} diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index 781e44cb..d05ae9c7 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -16,6 +16,9 @@ /* ---- Global Configuration Fonts ---- */ @import "~/.config/rofi/0-shared-fonts.rasi" +/* Force kitty as terminal for Terminal=true apps and run-shell */ +@import "~/.config/rofi/00-terminal.rasi" + /* note: Main themes in ~/.config/rofi/themes */ /* You can manually change here or you can use rofi theme selector SUPER SHIFT E */ -- cgit v1.2.3