From 306b794a6996711ec3c078824e8c8052388ea28d Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 9 Jun 2021 23:37:08 +0200 Subject: [PATCH] Add rofi config --- general/.config/rofi/config.rasi | 17 +++ general/.config/rofi/themes/blank.rasi | 142 +++++++++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 general/.config/rofi/config.rasi create mode 100644 general/.config/rofi/themes/blank.rasi diff --git a/general/.config/rofi/config.rasi b/general/.config/rofi/config.rasi new file mode 100644 index 0000000..b8f1ee4 --- /dev/null +++ b/general/.config/rofi/config.rasi @@ -0,0 +1,17 @@ +configuration { + font: "Droid Sans 12"; + show-icons: true; + drun-display-format: "{name}"; + fullscreen: false; + threads: 0; + matching: "fuzzy"; + scroll-method: 0; + disable-history: false; + fullscreen: false; + window-thumbnail: true; + kb-row-up: "Up,Alt+k"; + kb-row-down: "Down,Alt+j"; + kb-row-left: "Alt+h"; + kb-row-right: "Alt+l"; + theme: "themes/blank.rasi"; +} diff --git a/general/.config/rofi/themes/blank.rasi b/general/.config/rofi/themes/blank.rasi new file mode 100644 index 0000000..4e722fb --- /dev/null +++ b/general/.config/rofi/themes/blank.rasi @@ -0,0 +1,142 @@ +// Based on the glorious dotfiles: +// https://github.com/manilarome/the-glorious-dotfiles/blob/master/config/awesome/surreal/configuration/rofi/global/rofi.rasi + +* { + transparent: #00000000; + foreground: #F2F2F2EE; + background-selected: #F2F2F245; + background-active: #F2F2F230; + background-white: #F2F2F211; + background-black: #000000C0; + urgent: #E91E6366; + urgent-selected: #E91E6377; +} + +window { + transparency: "real"; + background-color: @transparent; + location: center; + anchor: center; + x-offset: 0px; + height: 500px; + width: 750px; + orientation: vertical; + border-radius: 12px; +} + +prompt { + enabled: false; +} + +button { + action: "ok"; + str: " "; + font: "FantasqueSansMono Nerd Font 11"; + expand: false; + text-color: @foreground; + background-color: @transparent; + vertical-align: 0.7; + horizontal-align: 0.5; +} + +entry { + font: "Droid Sans 11"; + background-color: @transparent; + text-color: @foreground; + expand: true; + vertical-align: 0.5; + horizontal-align: 0.5; + placeholder: "Type to search"; + placeholder-color: @foreground; + blink: true; +} + +case-indicator { + background-color: @transparent; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.5; +} + +entry-wrapper { + orientation: horizontal; + vertical-align: 0.5; + spacing: 4px; + background-color: @transparent; + children: [ button, entry, case-indicator ]; +} + +inputbar { + background-color: @background-white; + text-color: @foreground; + expand: false; + border-radius: 24px; + margin: 0px 225px 0px 225px; + padding: 10px 10px 10px 10px; + position: north; + children: [ entry-wrapper ]; +} + +listview { + background-color: @transparent; + columns: 2; + spacing: 5px; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-black; + children: [ inputbar, listview ]; + spacing: 25px; + padding: 40px 25px 25px 25px; +} + +element { + background-color: @transparent; + text-color: @foreground; + orientation: horizontal; + border-radius: 6px; + padding: 5px 10px 5px 10px; +} + +element-icon { + size: 46px; + border: 0; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0 10px 0 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 9px; +} + +element normal.active, +element alternate.active { + background-color: @background-active; + text-color: @foreground; +} + +element selected { + background-color: @background-selected; + text-color: @foreground; +} + +element selected.urgent { + background-color: @urgent-selected; + text-color: @foreground; +} + +element selected.active { + background-color: @background-active; + color: @foreground-selected; +}