From 420373806a9b2031187f5c7f7639f6dc073c5562 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 30 Mar 2022 20:23:26 +0200 Subject: [PATCH] [Rofi] Update theme --- .config/rofi/config.rasi | 116 +------------------------------- .config/rofi/nord.rasi | 142 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+), 114 deletions(-) create mode 100644 .config/rofi/nord.rasi diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi index 28f291c..58dde53 100644 --- a/.config/rofi/config.rasi +++ b/.config/rofi/config.rasi @@ -1,120 +1,8 @@ -/* -*- mode: css -*- */ - -/* - * sidetab-adapta theme, - * based on sidetab theme by deadguy. - * - * Theme found at https://github.com/shizonic/nord-rofi-theme - * Modified by P’undrak - * - * This theme has been dedicated to the public domain. - * - */ +/* -*- mode: scss -*- */ configuration { show-icons: true; sidebar-mode: false; modi: "window,ssh,drun,combi"; } - -* { - background-color: #2e344030; - text-color: #FFFFFF; - - accent-color: #88c0d0; - accent2-color: #88c0d0; - hover-color: #8fbcbb; - urgent-color: #FFFFFF; - window-color: #ffffff; - - selected-normal-foreground: @background-color; - normal-foreground: @text-color; - selected-normal-background: @hover-color; - normal-background: @background-color; - - selected-urgent-foreground: @background-color; - urgent-foreground: @background-color; - selected-urgent-background: @urgent-color; - urgent-background: @background-color; - - selected-active-foreground: @background-color; - active-foreground: @background-color; - selected-active-background: @hover-color; - active-background: @accent-color; -} - -#window { - anchor: center; - location: center; - width: 800px; - height: 80%; -} - -#mainbox { - children: [ entry, listview, mode-switcher ]; -} - -entry { - expand: false; - margin: 8px; -} - -element { - padding: 8px; -} - -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 4px solid 0 0; - border-color: @accent2-color; -} - -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; -} - -button { - padding: 8px; -} - -button selected { - background-color: @active-background; - text-color: @background-color; -} +@theme "nord" diff --git a/.config/rofi/nord.rasi b/.config/rofi/nord.rasi new file mode 100644 index 0000000..f5d651a --- /dev/null +++ b/.config/rofi/nord.rasi @@ -0,0 +1,142 @@ +/* -*- mode: css -*- */ +/** + * Nordic rofi theme + * Adapted by undiabler + * + * Nord Color palette imported from https://www.nordtheme.com/ + * + */ + +configuration { + + font: "Envy Code R 10"; + width: 30; + line-margin: 10; + lines: 6; + columns: 2; + + display-ssh: ""; + display-run: ""; + display-drun: ""; + display-window: ""; + display-combi: ""; + show-icons: true; +} + +* { + nord0: #2e3440; + nord1: #3b4252; + nord2: #434c5e; + nord3: #4c566a; + + nord4: #d8dee9; + nord5: #e5e9f0; + nord6: #eceff4; + + nord7: #8fbcbb; + nord8: #88c0d0; + nord9: #81a1c1; + nord10: #5e81ac; + nord11: #bf616a; + + nord12: #d08770; + nord13: #ebcb8b; + nord14: #a3be8c; + nord15: #b48ead; + + foreground: @nord9; + backlight: #ccffeedd; + background-color: transparent; + + highlight: underline bold #eceff4; + + transparent: rgba(46,52,64,0); +} + +window { + location: center; + anchor: center; + transparency: "screenshot"; + border: 0px; + border-radius: 6px; + + background-color: @transparent; + spacing: 0; + children: [mainbox]; + orientation: horizontal; +} + +mainbox { + spacing: 0; + children: [ inputbar, message, listview ]; +} + +message { + color: @nord0; + padding: 5; + border-color: @foreground; + border: 0px 2px 2px 2px; + background-color: @nord7; +} + +inputbar { + color: @nord6; + padding: 11px; + background-color: #3b4252; + + border: 1px; + border-radius: 6px 6px 0px 0px; + border-color: @nord10; +} + +entry, prompt, case-indicator { + text-font: inherit; + text-color:inherit; +} + +prompt { + margin: 0px 0.3em 0em 0em ; +} + +listview { + padding: 8px; + border-radius: 0px 0px 6px 6px; + border-color: @nord10; + border: 0px 1px 1px 1px; + background-color: rgba(46,52,64,0.9); + dynamic: false; +} + +element { + padding: 3px; + vertical-align: 0.5; + border-radius: 4px; + background-color: transparent; + color: @foreground; + text-color: rgb(216, 222, 233); +} + +element selected.normal { + background-color: @nord7; + text-color: #2e3440; +} + +element-text, element-icon { + background-color: inherit; + text-color: inherit; +} + +button { + padding: 6px; + color: @foreground; + horizontal-align: 0.5; + + border: 2px 0px 2px 2px; + border-radius: 4px 0px 0px 4px; + border-color: @foreground; +} + +button selected normal { + border: 2px 0px 2px 2px; + border-color: @foreground; +}