From cc8b3734f887e1a1a4cab02c0ea1524964e31a33 Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Sat, 11 Sep 2021 20:44:39 -0300 Subject: [PATCH] rofi: update config to the new version --- .config/qtile/config.py | 2 +- .config/rofi/config.rasi | 179 ++++++++++++++++++++++++--------------- 2 files changed, 114 insertions(+), 67 deletions(-) diff --git a/.config/qtile/config.py b/.config/qtile/config.py index ababca7..f6d2f2e 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -18,7 +18,7 @@ from libqtile.lazy import lazy MOD = "mod4" ALT = "mod1" TERMINAL = "alacritty" -LAUNCHER = "rofi -show drun" +LAUNCHER = "rofi -icon-theme 'Paper' -show-icons -show drun" WEB = "firefox" FILE_MANAGER = "nautilus -w" CLIPBOARD_MANAGER = "rofi -modi \"clipboard:greenclip print\" -show clipboard -run-command '{cmd}'" diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi index 8f40bb6..0c06e29 100644 --- a/.config/rofi/config.rasi +++ b/.config/rofi/config.rasi @@ -15,91 +15,138 @@ * Author: Benjamin Stauss * User: me-benni * + * Co-Author: Guilherme Freire + * User: GRFreire + * */ +configuration { + modi: "window,run,drun"; + show-icons: false; +} * { - black: #000000; - red: #eb6e67; - green: #95ee8f; - yellow: #f8c456; - blue: #6eaafb; - mangenta: #d886f3; - cyan: #6cdcf7; - emphasis: #50536b; - text: #dfdfdf; - text-alt: #b2b2b2; - fg: #abb2bf; - bg: #282c34; + black: #000000; + red: #eb6e67; + green: #95ee8f; + yellow: #f8c456; + blue: #6eaafb; + mangenta: #d886f3; + cyan: #6cdcf7; + emphasis: #50536b; + text: #dfdfdf; + text-alt: #b2b2b2; + fg: #abb2bf; + bg: #282c34; - spacing: 0; - background-color: transparent; + spacing: 0; + background-color: transparent; - font: "Knack Nerd Font 14"; - text-color: @text; -} - -mainbox { - background-color: #282c34ee; - padding: 14px; -} - -inputbar { - margin: 0px 0px 20px 0px; - children: [prompt, textbox-prompt-colon, entry, case-indicator]; -} - -prompt { - text-color: @blue; -} - -textbox-prompt-colon { - expand: false; - str: ":"; - text-color: @text-alt; -} - -entry { - margin: 0px 10px; -} - -listview { - spacing: 5px; - dynamic: true; - scrollbar: false; + font: "Knack Nerd Font 14"; + text-color: @text; } element { - padding: 10px 5px 5px; - text-color: @text-alt; - highlight: bold #95ee8f; /* green */ - border-radius: 3px; + cursor: pointer; + padding: 7px 5px 5px; + text-color: @text-alt; + highlight: bold #95ee8f; + border: 0; + border-radius: 3px; + text-color: @text; } -element selected { - background-color: @emphasis; - text-color: @text; +element-icon { + background-color: transparent; + margin: 0 10px 0 0; } -element urgent, element selected urgent { - text-color: @red; +element-icon { + background-color: transparent; + margin: 0 10px 0 0; } -element active, element selected active { - text-color: @purple; +element-text { + padding: 3px 0 0; +} + +element.selected.normal { + background-color: @emphasis; +} + +element normal.normal, element alternate.normal { + background-color: transparent; + text-color: @text; +} + +element normal.urgent, element alternate.urgent { + background-color: transparent; + text-color: @red; +} + +element normal.active, element alternate.active { + background-color: transparent; + text-color: @mangenta; +} + +window { + padding: 0; + margin: 0; + background-color: transparent; + border: 0; +} + +mainbox { + border: 0; + background-color: #282c34dd; + padding: 14px; } message { - padding: 10px 5px 5px; - margin: 0 0 10px 0; - border-radius: 3px; - background-color: @emphasis; - border: 1px; - border-color: @cyan; + padding: 10px 5px 5px; + margin: 0 0 10px 0; + border-radius: 3px; + background-color: @emphasis; + border: 2px; + border-color: @blue; +} + +textbox { + text-color: @text; +} + +listview { + border: 0; + dynamic: true; + scrollbar: false; } button selected { - padding: 5px; - border-radius: 3px; - background-color: @emphasis; + padding: 5px; + border-radius: 3px; + background-color: @emphasis; +} + +inputbar { + margin: 0px 0px 20px 0px; + children: [prompt, textbox-prompt-colon, entry, case-indicator]; +} + +entry { + cursor: text; + placeholder-color: @text-alt; + placeholder: ""; + text-color: @text; + margin: 0px 10px; +} + +prompt { + text-color: @blue; +} + +textbox-prompt-colon { + text-color: inherit; + expand: false; + str: ":"; + text-color: @text-alt; }