diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-08-06 18:51:59 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-08-06 18:51:59 +0200 |
| commit | a1f7f43c95c049628e826856ec589b339cd4f5db (patch) | |
| tree | a0f5bb10fc36f02ad6dbaebf1232ca2548f9ccfa /home/config/rofi.nix | |
initial commit
Diffstat (limited to 'home/config/rofi.nix')
| -rw-r--r-- | home/config/rofi.nix | 145 |
1 files changed, 145 insertions, 0 deletions
diff --git a/home/config/rofi.nix b/home/config/rofi.nix new file mode 100644 index 0000000..8a6d1bb --- /dev/null +++ b/home/config/rofi.nix @@ -0,0 +1,145 @@ +{ pkgs, ... }: + +{ + programs.rofi = { + enable = true; + + cycle = true; + theme = builtins.toString (pkgs.writeText "rofi-theme" '' + /** + * Copyright: deadguy + * (edited by Litarvan) + */ + + configuration { + display-drun: "Activate"; + display-run: "Execute"; + display-window: "Window"; + show-icons: true; + sidebar-mode: true; + font: "Roboto 13"; + } + + * { + background-color: transparent; + text-color: #b2aea8; + selbg: #3949A3; + actbg: #262626; + urgbg: #e53935; + winbg: #B3BEFF; + + selected-normal-foreground: @winbg; + normal-foreground: @text-color; + selected-normal-background: @actbg; + normal-background: @background-color; + + selected-urgent-foreground: @background-color; + urgent-foreground: @text-color; + selected-urgent-background: @urgbg; + urgent-background: @background-color; + + selected-active-foreground: @winbg; + active-foreground: @text-color; + selected-active-background: @actbg; + active-background: @selbg; + + line-margin: 2; + line-padding: 2; + separator-style: "none"; + hide-scrollbar: "true"; + margin: 0; + padding: 0; + } + + window { + transparency: "real"; + background-color: #000000FF; + location: west; + anchor: west; + height: 100%; + width: 10em; + orientation: horizontal; + children: [mainbox]; + } + + mainbox { + spacing: 0.8em; + children: [entry, listview ]; + } + + button { padding: 5px 2px; } + + button selected { + background-color: @active-background; + text-color: @background-color; + } + + inputbar { + padding: 5px; + spacing: 5px; + } + + listview { + spacing: 0; + dynamic: false; + cycle: false; + } + + element { padding: 10px; } + + entry { + expand: false; + text-color: @normal-foreground; + vertical-align: 1; + padding: 5px; + } + + 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; + border: 0 5px solid 0 0; + border-color: @active-background; + } + + 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: @normal-background; + text-color: @normal-foreground; + } + + element alternate.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; + } + + element alternate.active { + background-color: @active-background; + text-color: @active-foreground; + } + ''); + }; +} |
