diff --git a/home-manager/sajenim/features/desktop/jade/rofi.nix b/home-manager/sajenim/features/desktop/jade/rofi.nix deleted file mode 100644 index 5a2fe20..0000000 --- a/home-manager/sajenim/features/desktop/jade/rofi.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ ... }: - -{ - programs.rofi = { - enable = true; - font = "Fisa Code 10"; - }; -} - diff --git a/home-manager/sajenim/features/desktop/jade/rofi/default.nix b/home-manager/sajenim/features/desktop/jade/rofi/default.nix new file mode 100644 index 0000000..c4ee9ca --- /dev/null +++ b/home-manager/sajenim/features/desktop/jade/rofi/default.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: + +{ + programs.rofi = { + enable = true; + font = "Fisa Code 10"; + plugins = with pkgs; [ + rofi-calc + ]; + theme = ./gruvbox-material/gruvbox-material-dark-hard.rasi; + }; + + xdg.configFile.theme = { + source = ./gruvbox-material; + target = "rofi/themes/gruvbox"; + recursive = true; + }; +} + diff --git a/home-manager/sajenim/features/desktop/jade/rofi/gruvbox-material/gruvbox-common.rasi b/home-manager/sajenim/features/desktop/jade/rofi/gruvbox-material/gruvbox-common.rasi new file mode 100644 index 0000000..6d95f8c --- /dev/null +++ b/home-manager/sajenim/features/desktop/jade/rofi/gruvbox-material/gruvbox-common.rasi @@ -0,0 +1,127 @@ +/* ========================================================================== + 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 + ========================================================================== */ + +window { + background-color: @background; + border: 2; + padding: 2; +} + +mainbox { + border: 0; + padding: 0; +} + +message { + border: 2px 0 0; + border-color: @separatorcolor; + padding: 1px; +} + +textbox { + highlight: @highlight; + text-color: @foreground; +} + +listview { + border: 2px solid 0 0; + padding: 2px 0 0; + border-color: @separatorcolor; + spacing: 2px; + scrollbar: @scrollbar; +} + +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: 40px; + border: 0; + handle-color: @scrollbar-handle; + handle-width: 8px; + padding: 0; +} + +sidebar { + border: 2px 0 0; + border-color: @separatorcolor; +} + +inputbar { + spacing: 0; + text-color: @normal-foreground; + padding: 2px; + children: [ prompt, textbox-prompt-sep, entry, case-indicator ]; +} + +case-indicator, +entry, +prompt, +button { + spacing: 0; + text-color: @normal-foreground; +} + +button.selected { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} + +textbox-prompt-sep { + expand: false; + str: ":"; + text-color: @normal-foreground; + margin: 0 0.3em 0 0; +} diff --git a/home-manager/sajenim/features/desktop/jade/rofi/gruvbox-material/gruvbox-material-dark-hard.rasi b/home-manager/sajenim/features/desktop/jade/rofi/gruvbox-material/gruvbox-material-dark-hard.rasi new file mode 100644 index 0000000..0f4e3aa --- /dev/null +++ b/home-manager/sajenim/features/desktop/jade/rofi/gruvbox-material/gruvbox-material-dark-hard.rasi @@ -0,0 +1,62 @@ +/* ========================================================================== + Rofi color theme + + Based on the Gruvbox color scheme for Vim by morhetz + https://github.com/morhetz/gruvbox + + File: gruvbox-dark-hard.rasi + Desc: Gruvbox dark (hard contrast) color theme for Rofi + Author: bardisty + Source: https://github.com/bardisty/gruvbox-rofi + Modified: Mon Feb 12 2018 06:04:26 PST -0800 + ========================================================================== */ + +* { + /* Theme settings */ + highlight: bold italic; + scrollbar: true; + + /* Gruvbox dark colors */ + gruvbox-dark-bg0: #1d2021; + gruvbox-dark-bg1: #282828; + gruvbox-dark-bg2: #504945; + gruvbox-dark-fg0: #d4be98; + gruvbox-dark-fg1: #ddc7a1; + gruvbox-dark-red-dark: #cc241d; + gruvbox-dark-red-light: #fb4934; + gruvbox-dark-yellow-dark: #d79921; + gruvbox-dark-yellow-light: #fabd2f; + gruvbox-dark-gray: #a89984; + + /* Theme colors */ + background: @gruvbox-dark-bg0; + background-color: @background; + foreground: @gruvbox-dark-fg1; + border-color: @gruvbox-dark-bg1; + separatorcolor: @border-color; + scrollbar-handle: @gruvbox-dark-bg2; + + normal-background: @background; + normal-foreground: @gruvbox-dark-gray; + alternate-normal-background: @normal-background; + alternate-normal-foreground: @normal-foreground; + selected-normal-background: @gruvbox-dark-bg2; + selected-normal-foreground: @gruvbox-dark-fg0; + + active-background: @gruvbox-dark-yellow-dark; + active-foreground: @background; + alternate-active-background: @active-background; + alternate-active-foreground: @active-foreground; + selected-active-background: @gruvbox-dark-yellow-light; + selected-active-foreground: @active-foreground; + + urgent-background: @gruvbox-dark-red-dark; + urgent-foreground: @background; + alternate-urgent-background: @urgent-background; + alternate-urgent-foreground: @urgent-foreground; + selected-urgent-background: @gruvbox-dark-red-light; + selected-urgent-foreground: @urgent-foreground; +} + +@import "gruvbox-common.rasi" +