From 85975e0a72c1bd3b3dd79744d0c91c15831ec4d3 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sat, 7 Nov 2020 14:50:27 -0600 Subject: [PATCH] rofi to be more snazzy --- picom.conf | 1 + qutebrowser/config.py | 4 +- rofi/config.rasi | 4 ++ rofi/launchers-git/blurry-wide.rasi | 90 +++++++++++++++++++---------- rofi/launchers-git/blurry.rasi | 90 +++++++++++++++++++---------- 5 files changed, 123 insertions(+), 66 deletions(-) diff --git a/picom.conf b/picom.conf index 8e38c35..3b5692a 100644 --- a/picom.conf +++ b/picom.conf @@ -94,6 +94,7 @@ shadow-exclude = [ "class_g = 'Cairo-clock'", "class_g = 'slop'", "class_g = 'Polybar'", + # "class_g = 'Rofi'", "_GTK_FRAME_EXTENTS@:c" ]; diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 989ec14..e65ee40 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -2237,7 +2237,7 @@ config.bind('d', 'close') # config.bind('l', 'scroll right') # config.bind('m', 'quickmark-save') # config.bind('n', 'search-next') -# config.bind('o', 'set-cmd-text -s :open') +config.bind('o', 'set-cmd-text -s :open') # config.bind('pP', 'open -- {primary}') # config.bind('pp', 'open -- {clipboard}') # config.bind('q', 'record-macro') @@ -2426,4 +2426,4 @@ config.bind('gv', 'spawn --detach mpv --force-window yes {url}') config.bind('gV', 'hint links spawn alacritty -e youtube-dl -o ~/Videos/%(title)s.%(ext)s {hint-url}') ## Bindings for MPV and YTDL -config.bind('o', 'spawn --userscript rofi') +# config.bind('o', 'spawn --userscript rofi') diff --git a/rofi/config.rasi b/rofi/config.rasi index e89fedd..34ca67e 100644 --- a/rofi/config.rasi +++ b/rofi/config.rasi @@ -3,5 +3,9 @@ configuration { show-icons: true; icon-theme: "Papirus"; + terminal: "alacritty"; + sidebar-mode: true; + run-command: "fish -c {cmd}"; + run-list-command: "fish -c functions"; } @import "/home/chris/.dotfiles/rofi/launchers-git/blurry.rasi" diff --git a/rofi/launchers-git/blurry-wide.rasi b/rofi/launchers-git/blurry-wide.rasi index f40aae9..dd362a1 100644 --- a/rofi/launchers-git/blurry-wide.rasi +++ b/rofi/launchers-git/blurry-wide.rasi @@ -10,36 +10,48 @@ configuration { font: "VictorMono Nerd Font 14.0"; - show-icons: true; - icon-theme: "Papirus"; - display-drun: " "; - drun-display-format: "{name} {description}"; + display-drun: " "; + drun-display-format: "{name} {description} - {command}"; threads: 0; scroll-method: 0; disable-history: false; fullscreen: false; - hide-scrollbar: true; - sidebar-mode: false; + hide-scrollbar: true; + sidebar-mode: true; } * { - background: #12121222; + backgrounkd: #12121222; background-color: #00222b33; background-entry: #000000; background-alt: #323232; - foreground: #f2f2f2; foreground-selected: #ffffff; urgent: #E91E63; urgent-selected: #E91E63; transparent: #00000000; + base00: #282a36; + base01: #34353e; + base02: #43454f; + base03: #78787e; + base04: #a5a5a9; + base05: #e2e4e5; + base06: #eff0eb; + base07: #f1f1f0; + base08: #ff5c57; + base09: #ff9f43; + base0A: #f3f99d; + base0B: #5af78e; + base0C: #9aedfe; + base0D: #57c7ff; + base0E: #ff6ac1; + base0F: #b2643c; } window { - background-color: #44444444; - text-color: @foreground; + background-color: @transparent; + text-color: @base05; border-radius: 0px; border: 0px; -// height: 60%; width: 80%; location: center; anchor: center; @@ -51,14 +63,14 @@ window { mainbox { border-radius: 35px; - background-color: @background-color; - text-color: @foreground; + background-color: @base00; + text-color: @base05; transparency: "real"; } inputbar { - background-color: @background-alt; - text-color: @foreground; + background-color: @base01; + text-color: @base05; expand: false; border-radius: 36px; margin: 0px 0px 0px 0px; @@ -67,18 +79,17 @@ inputbar { } prompt { - enabled: true; - padding: 0px 6px 0px 5px; - background-color: @transparent; - text-color: @foreground; - // font: "FantasqueSansMono Nerd Font 16"; + enabled: true; + padding: 0px 6px 0px 5px; + background-color: @transparent; + text-color: @base05; border: 0px; } entry { background-color: @transparent; - placeholder-color: @foreground; - text-color: @foreground; + placeholder-color: @base05; + text-color: @base05; expand: true; horizontal-align: 0; placeholder: "Search"; @@ -89,14 +100,17 @@ entry { case-indicator { background-color: @transparent; - text-color: @foreground; + text-color: @base05; spacing: 0; border: 0px; } +sidebar { + border: 2px 0 0; +} listview { - background-color: @background; + background-color: @base00; columns: 1; spacing: 4px; cycle: false; @@ -111,14 +125,26 @@ listview { mainbox { background-color: @transparent; text-color: @transparent; - children: [ inputbar, listview ]; + children: [ inputbar, listview, message ]; spacing: 5px; padding: 10px 10px 10px 10px; } +message { + border: 0px 0 0; + padding: 0px; + background-color: @transparent; +} + +textbox { + highlight: @base0B; + text-color: @base0B; + background-color: @transparent; + padding: 10px 90px 10px 90px; +} element { - background-color: @background; - text-color: @foreground; + background-color: @base00; + text-color: @base05; orientation: horizontal; border-radius: 6px; padding: 5px 0px 5px 0px; @@ -138,27 +164,27 @@ element-text { element normal.urgent, element alternate.urgent { background-color: @urgent; - text-color: @foreground; + text-color: @base08; border-radius: 9px; } element normal.active, element alternate.active { background-color: @background-alt; - text-color: @foreground; + text-color: @base0B; } element selected { background-color: @background-alt; - text-color: @foreground-selected; + text-color: @base0A; } element selected.urgent { background-color: @urgent-selected; - text-color: @foreground; + text-color: @base08; } element selected.active { background-color: @background-alt; - color: @foreground-selected; + color: @base0A; } diff --git a/rofi/launchers-git/blurry.rasi b/rofi/launchers-git/blurry.rasi index 76a25fc..4080741 100644 --- a/rofi/launchers-git/blurry.rasi +++ b/rofi/launchers-git/blurry.rasi @@ -10,36 +10,48 @@ configuration { font: "VictorMono Nerd Font 14.0"; - show-icons: true; - icon-theme: "Papirus"; - display-drun: " "; - drun-display-format: "{name} {description}"; + display-drun: " "; + drun-display-format: "{name} {description} - {command}"; threads: 0; scroll-method: 0; disable-history: false; fullscreen: false; - hide-scrollbar: true; - sidebar-mode: false; + hide-scrollbar: true; + sidebar-mode: true; } * { - background: #12121222; + backgrounkd: #12121222; background-color: #00222b33; background-entry: #000000; background-alt: #323232; - foreground: #f2f2f2; foreground-selected: #ffffff; urgent: #E91E63; urgent-selected: #E91E63; transparent: #00000000; + base00: #282a36; + base01: #34353e; + base02: #43454f; + base03: #78787e; + base04: #a5a5a9; + base05: #e2e4e5; + base06: #eff0eb; + base07: #f1f1f0; + base08: #ff5c57; + base09: #ff9f43; + base0A: #f3f99d; + base0B: #5af78e; + base0C: #9aedfe; + base0D: #57c7ff; + base0E: #ff6ac1; + base0F: #b2643c; } window { - background-color: #44444444; - text-color: @foreground; + background-color: @transparent; + text-color: @base05; border-radius: 0px; border: 0px; -// height: 60%; width: 50%; location: center; anchor: center; @@ -51,14 +63,14 @@ window { mainbox { border-radius: 35px; - background-color: @background-color; - text-color: @foreground; + background-color: @base00; + text-color: @base05; transparency: "real"; } inputbar { - background-color: @background-alt; - text-color: @foreground; + background-color: @base01; + text-color: @base05; expand: false; border-radius: 36px; margin: 0px 0px 0px 0px; @@ -67,18 +79,17 @@ inputbar { } prompt { - enabled: true; - padding: 0px 6px 0px 5px; - background-color: @transparent; - text-color: @foreground; - // font: "FantasqueSansMono Nerd Font 16"; + enabled: true; + padding: 0px 6px 0px 5px; + background-color: @transparent; + text-color: @base05; border: 0px; } entry { background-color: @transparent; - placeholder-color: @foreground; - text-color: @foreground; + placeholder-color: @base05; + text-color: @base05; expand: true; horizontal-align: 0; placeholder: "Search"; @@ -89,14 +100,17 @@ entry { case-indicator { background-color: @transparent; - text-color: @foreground; + text-color: @base05; spacing: 0; border: 0px; } +sidebar { + border: 2px 0 0; +} listview { - background-color: @background; + background-color: @base00; columns: 1; spacing: 4px; cycle: false; @@ -111,14 +125,26 @@ listview { mainbox { background-color: @transparent; text-color: @transparent; - children: [ inputbar, listview ]; + children: [ inputbar, listview, message ]; spacing: 5px; padding: 10px 10px 10px 10px; } +message { + border: 0px 0 0; + padding: 0px; + background-color: @transparent; +} + +textbox { + highlight: @base0B; + text-color: @base0B; + background-color: @transparent; + padding: 10px 90px 10px 90px; +} element { - background-color: @background; - text-color: @foreground; + background-color: @base00; + text-color: @base05; orientation: horizontal; border-radius: 6px; padding: 5px 0px 5px 0px; @@ -138,27 +164,27 @@ element-text { element normal.urgent, element alternate.urgent { background-color: @urgent; - text-color: @foreground; + text-color: @base08; border-radius: 9px; } element normal.active, element alternate.active { background-color: @background-alt; - text-color: @foreground; + text-color: @base0B; } element selected { background-color: @background-alt; - text-color: @foreground-selected; + text-color: @base0A; } element selected.urgent { background-color: @urgent-selected; - text-color: @foreground; + text-color: @base08; } element selected.active { background-color: @background-alt; - color: @foreground-selected; + color: @base0A; }