From 289908de6fb4e1419d92b9a7e0ba1a65f4714cc9 Mon Sep 17 00:00:00 2001 From: wholteza Date: Thu, 21 Sep 2023 13:02:39 +0200 Subject: [PATCH] rofi + theme --- .config/i3/config | 6 +- .config/rofi/themes/nord.rasi | 149 ++++++++++++++++++++++++++++++++++ 2 files changed, 152 insertions(+), 3 deletions(-) create mode 100644 .config/rofi/themes/nord.rasi diff --git a/.config/i3/config b/.config/i3/config index 6e3a888..f32e298 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -71,7 +71,7 @@ bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+d exec --no-startup-id "rofi -theme nord -combi-modi window,drun,ssh -font 'pango:monospace 18' -show combi" # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a @@ -103,10 +103,10 @@ bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation -bindsym $mod+h split h +bindsym $mod+v split h # split in vertical orientation -bindsym $mod+v split v +bindsym $mod+h split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle diff --git a/.config/rofi/themes/nord.rasi b/.config/rofi/themes/nord.rasi new file mode 100644 index 0000000..c1b3d6f --- /dev/null +++ b/.config/rofi/themes/nord.rasi @@ -0,0 +1,149 @@ +* { + 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; + + spacing: 2; + background-color: var(nord1); + + background: var(nord1); + foreground: var(nord4); + + normal-background: var(background); + normal-foreground: var(foreground); + alternate-normal-background: var(background); + alternate-normal-foreground: var(foreground); + selected-normal-background: var(nord8); + selected-normal-foreground: var(background); + + active-background: var(background); + active-foreground: var(nord10); + alternate-active-background: var(background); + alternate-active-foreground: var(nord10); + selected-active-background: var(nord10); + selected-active-foreground: var(background); + + urgent-background: var(background); + urgent-foreground: var(nord11); + alternate-urgent-background: var(background); + alternate-urgent-foreground: var(nord11); + selected-urgent-background: var(nord11); + selected-urgent-foreground: var(background); +} +element { + padding: 0px 0px 0px 7px; + spacing: 5px; + border: 0; + cursor: pointer; +} +element normal.normal { + background-color: var(normal-background); + text-color: var(normal-foreground); +} +element normal.urgent { + background-color: var(urgent-background); + text-color: var(urgent-foreground); +} +element normal.active { + background-color: var(active-background); + text-color: var(active-foreground); +} +element selected.normal { + background-color: var(selected-normal-background); + text-color: var(selected-normal-foreground); +} +element selected.urgent { + background-color: var(selected-urgent-background); + text-color: var(selected-urgent-foreground); +} +element selected.active { + background-color: var(selected-active-background); + text-color: var(selected-active-foreground); +} +element alternate.normal { + background-color: var(alternate-normal-background); + text-color: var(alternate-normal-foreground); +} +element alternate.urgent { + background-color: var(alternate-urgent-background); + text-color: var(alternate-urgent-foreground); +} +element alternate.active { + background-color: var(alternate-active-background); + text-color: var(alternate-active-foreground); +} +element-text { + background-color: rgba(0, 0, 0, 0%); + text-color: inherit; + highlight: inherit; + cursor: inherit; +} +element-icon { + background-color: rgba(0, 0, 0, 0%); + size: 1.0000em; + text-color: inherit; + cursor: inherit; +} +window { + padding: 0; + border: 0; + background-color: var(background); +} +mainbox { + padding: 0; + border: 0; +} +message { + margin: 0px 7px; +} +textbox { + text-color: var(foreground); +} +listview { + margin: 0px 0px 5px; + scrollbar: true; + spacing: 2px; + fixed-height: 0; +} +scrollbar { + padding: 0; + handle-width: 14px; + border: 0; + handle-color: var(nord3); +} +button { + spacing: 0; + text-color: var(normal-foreground); + cursor: pointer; +} +button selected { + background-color: var(selected-normal-background); + text-color: var(selected-normal-foreground); +} +inputbar { + padding: 7px; + margin: 7px; + spacing: 0; + text-color: var(normal-foreground); + background-color: var(nord3); + children: [ entry ]; +} +entry { + spacing: 0; + cursor: text; + text-color: var(normal-foreground); + background-color: var(nord3); +}