From cb96e16cc863eed9581cc2d7afed401d08d763b9 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 11 Sep 2021 22:48:21 +0100 Subject: [PATCH] Use new rofi config format Required changing theme, too. --- files/rofi.conf | 21 ------- files/rofi.rasi | 159 ++++++++++++++++++++++++++++++++++++++++++++++++ tasks/i3.yml | 4 +- 3 files changed, 161 insertions(+), 23 deletions(-) delete mode 100644 files/rofi.conf create mode 100644 files/rofi.rasi diff --git a/files/rofi.conf b/files/rofi.conf deleted file mode 100644 index 0d629ee..0000000 --- a/files/rofi.conf +++ /dev/null @@ -1,21 +0,0 @@ -! ------------------------------------------------------------------------------ -! ROFI Color theme -! ------------------------------------------------------------------------------ -rofi.color-enabled: true -rofi.color-window: #393939, #393939, #268bd2 -rofi.color-normal: #393939, #ffffff, #393939, #268bd2, #ffffff -rofi.color-active: #393939, #268bd2, #393939, #268bd2, #205171 -rofi.color-urgent: #393939, #f3843d, #393939, #268bd2, #ffc39c - -rofi.show-icons: true -rofi.modi: window,ssh,drun -rofi.no-show-match: true -rofi.lines: 10 -rofi.width: 40 -rofi.sort: true -rofi.matching: glob - -rofi.kb-mode-next: Alt+Right -rofi.kb-mode-previous: Alt+Left - -rofi.ssh-command: alacritty -e {ssh-client} {host} diff --git a/files/rofi.rasi b/files/rofi.rasi new file mode 100644 index 0000000..b34f834 --- /dev/null +++ b/files/rofi.rasi @@ -0,0 +1,159 @@ +configuration { + modi: "window,ssh,drun"; + width: 40; + lines: 10; + show-icons: true; + ssh-command: "alacritty -e {ssh-client} {host}"; + sort: true; + matching: "glob"; + kb-mode-next: "Alt+Right"; + kb-mode-previous: "Alt+Left"; +} + +/** + * ROFI Color theme + * User: mbfraga + * Copyright: Martin B. Fraga + * Copied from https://github.com/davatorium/rofi-themes/blob/master/User%20Themes/flat-orange.rasi, with modifications + */ + +/* global settings and color variables */ +* { + maincolor: #ed8712; + highlight: bold #ed8712; + urgentcolor: #e53714; + + fgwhite: #cfcfcf; + blackdarkest: #1d1d1d; + blackwidget: #262626; + blackentry: #292929; + blackselect: #303030; + darkgray: #848484; + scrollbarcolor: #505050; + font: "DejaVu Sans Mono Regular 12"; + background-color: @blackdarkest; +} + +window { + background-color: @blackdarkest; + anchor: center; + location: center; +} + +mainbox { + background-color: @blackdarkest; + spacing:0px; + children: [inputbar, message, mode-switcher, listview]; +} + +message { + padding: 6px 10px; + background-color:@blackwidget; +} + +textbox { + text-color:@darkgray; + background-color:@blackwidget; +} + +listview { + fixed-height: false; + dynamic: true; + scrollbar: true; + spacing: 0px; + padding: 1px 0px 0px 0px; + margin: 0px 0px 1px 0px; + background: @blackdarkest; +} + +element { + padding: 2px 15px; +} + +element normal.normal { + padding: 0px 15px; + background-color: @blackentry; + text-color: @fgwhite; +} + +element normal.urgent { + background-color: @blackentry; + text-color: @urgentcolor; +} + +element normal.active { + background-color: @blackentry; + text-color: @maincolor; +} + +element selected.normal { + background-color: @blackselect; + text-color: @fgwhite; +} + +element selected.urgent { + background-color: @urgentcolor; + text-color: @blackdarkest; +} + +element selected.active { + background-color: @maincolor; + text-color: @blackdarkest; +} + +element alternate.normal { + background-color: @blackentry; + text-color: @fgwhite; +} + +element alternate.urgent { + background-color: @blackentry; + text-color: @urgentcolor; +} + +element alternate.active { + background-color: @blackentry; + text-color: @maincolor; +} + +scrollbar { + background-color: @blackwidget; + handle-color: @darkgray; + handle-width: 15px; +} + +mode-switcher { + background-color: @blackwidget; +} + +button { + background-color: @blackwidget; + text-color: @darkgray; +} + +button selected { + text-color: @maincolor; +} + +inputbar { + background-color: @blackdarkest; + spacing: 0px; +} + +prompt { + padding:6px 9px; + background-color: @maincolor; + text-color:@blackwidget; +} + +entry { + padding:6px 10px; + background-color:@blackwidget; + text-color:@fgwhite; +} + +case-indicator { + padding:6px 10px; + text-color:@maincolor; + background-color:@blackwidget; +} diff --git a/tasks/i3.yml b/tasks/i3.yml index 134690d..3410f00 100644 --- a/tasks/i3.yml +++ b/tasks/i3.yml @@ -91,8 +91,8 @@ - name: Create rofi config copy: - src: ./files/rofi.conf - dest: "{{ home }}/.config/rofi/config" + src: ./files/rofi.rasi + dest: "{{ home }}/.config/rofi/config.rasi" mode: 0644 owner: "{{ user }}"