From b053a064eecbfaeddc82f664976203138d978d0e Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Thu, 12 Dec 2024 20:20:31 -0500 Subject: [PATCH] Add rofi configuration --- config/rofi/config.rasi | 36 +++++ config/rofi/gruvbox-common.rasinc.rasi | 193 +++++++++++++++++++++++++ 2 files changed, 229 insertions(+) create mode 100644 config/rofi/config.rasi create mode 100644 config/rofi/gruvbox-common.rasinc.rasi diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi new file mode 100644 index 0000000..06abb8e --- /dev/null +++ b/config/rofi/config.rasi @@ -0,0 +1,36 @@ +* { + /* Theme settings */ + highlight: bold italic; + scrollbar: false; + + /* Theme colors */ + background: #191919; + background-color: @background; + foreground: #8e8e82; + border-color: #61676B; + separatorcolor: @border-color; + scrollbar-handle: @border-color; + + normal-background: @background; + normal-foreground: @foreground; + alternate-normal-background: @background; + alternate-normal-foreground: @foreground; + selected-normal-background: #3d3839; + selected-normal-foreground: #BBBBBB; + + active-background: #B77E64; + active-foreground: @background; + alternate-active-background: @active-background; + alternate-active-foreground: @active-foreground; + selected-active-background: #D68C67; + selected-active-foreground: @active-foreground; + + urgent-background: #DE6E7C; + urgent-foreground: @background; + alternate-urgent-background: @urgent-background; + alternate-urgent-foreground: @urgent-foreground; + selected-urgent-background: #E8838F; + selected-urgent-foreground: @urgent-foreground; +} + +@import "gruvbox-common.rasinc" diff --git a/config/rofi/gruvbox-common.rasinc.rasi b/config/rofi/gruvbox-common.rasinc.rasi new file mode 100644 index 0000000..b479beb --- /dev/null +++ b/config/rofi/gruvbox-common.rasinc.rasi @@ -0,0 +1,193 @@ +/* ========================================================================== + File: gruvbox-common.rasi + Desc: Shared rules between all gruvbox themes + Author: bardisty + Source: https://github.com/bardisty/gruvbox-rofi + Modified: Mon Feb 12 2018 06:06:47 PST -0800 + ========================================================================== */ + +configuration { + modi: "drun"; + show-icons: true; + icon-theme: "Papirus-Dark"; + display-drun: ""; + drun-display-format: "{name}"; +} + +window { + background-color: @background; + border: 2; + padding: 2; + transparency: "real"; + location: center; + anchor: center; + fullscreen: false; + width: 600px; + x-offset: 0px; + y-offset: 0px; + + enabled: true; + margin: 0px; + padding: 0px; + border: 2px solid; + border-radius: 12px; + border-color: @border-color; +} + +mainbox { + enabled: true; + spacing: 0px; + margin: 0px; + padding: 0px; + border: 0px solid; + border-radius: 0px 0px 0px 0px; + border-color: @selected-normal-foreground; + background-color: transparent; + children: [ "inputbar", "listview" ]; +} + +message { + border: 2px 0 0; + border-color: @separatorcolor; + padding: 1px; +} + +textbox { + highlight: @highlight; + text-color: @foreground; +} + +listview { + enabled: true; + columns: 1; + lines: 6; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + + spacing: 5px; + margin: 0px; + padding: 0px; + border: 0px solid; + border-radius: 0px; + border-color: @selected-normal-foreground; + background-color: transparent; + text-color: @foreground; + cursor: "default"; +} + +element { + border: 0; + padding: 2px; +} + +element.normal.normal { + background-color: @normal-background; + text-color: @normal-foreground; +} + +element.normal.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; +} + +element.normal.active { + background-color: @active-background; + text-color: @active-foreground; +} + +element.selected.normal { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} + +element.selected.urgent { + background-color: @selected-urgent-background; + text-color: @selected-urgent-foreground; +} + +element.selected.active { + background-color: @selected-active-background; + text-color: @selected-active-foreground; +} + +element.alternate.normal { + background-color: @alternate-normal-background; + text-color: @alternate-normal-foreground; +} + +element.alternate.urgent { + background-color: @alternate-urgent-background; + text-color: @alternate-urgent-foreground; +} + +element.alternate.active { + background-color: @alternate-active-background; + text-color: @alternate-active-foreground; +} + +scrollbar { + width: 0px; + border: 0; + handle-color: @scrollbar-handle; + handle-width: 8px; + padding: 0; +} + +mode-switcher { + border: 2px 0 0; + border-color: @separatorcolor; +} + +inputbar { + text-color: @normal-foreground; + children: [ prompt, entry]; + enabled: true; + spacing: 10px; + margin: 0px; + padding: 15px; + border: 0px solid; + border-radius: 0px; +} + +case-indicator, +button { + spacing: 0; + text-color: @normal-foreground; +} + +button.selected { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} + + +prompt { + enabled: true; + background-color: inherit; + text-color: inherit; +} +textbox-prompt-colon { + enabled: true; + expand: false; + str: "::"; + background-color: inherit; + text-color: inherit; +} +entry { + enabled: true; + background-color: inherit; + text-color: inherit; + cursor: text; + placeholder: "Search..."; + placeholder-color: inherit; +} + +element-text, element-icon { + background-color: inherit; + text-color: inherit; +}