From 16cb8f092ed1606be553f1fff37c54fbe18a8f1e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 5 Sep 2019 13:03:51 +0200 Subject: [PATCH] Add dmenu theme --- .config/rofi/themes/colorschemes/dmenu.rasi | 11 +++++ .config/rofi/themes/layouts/dmenu.rasi | 44 +++++++++++++++++++ .../rofi/themes/layouts/list-horizontal.rasi | 1 + 3 files changed, 56 insertions(+) create mode 100644 .config/rofi/themes/colorschemes/dmenu.rasi create mode 100644 .config/rofi/themes/layouts/dmenu.rasi diff --git a/.config/rofi/themes/colorschemes/dmenu.rasi b/.config/rofi/themes/colorschemes/dmenu.rasi new file mode 100644 index 0000000..60007ac --- /dev/null +++ b/.config/rofi/themes/colorschemes/dmenu.rasi @@ -0,0 +1,11 @@ +* { +accent: #ffffff; // anything which should be accented +background: #000000; // rofi background color + background-nofocus: #000000;// bg of items not focused + background-focus: #4682b4; // bg of item focused +foreground: #ffffff; // rofi foreground color + foreground-nofocus: #ffffff;// fg of items not focused + foreground-focus: #000000; // fg of items focused +on: #6B9BC3; // color to signify something is turned on +off: #1D354A; // color to signify something is turned off +} diff --git a/.config/rofi/themes/layouts/dmenu.rasi b/.config/rofi/themes/layouts/dmenu.rasi new file mode 100644 index 0000000..1d3ea15 --- /dev/null +++ b/.config/rofi/themes/layouts/dmenu.rasi @@ -0,0 +1,44 @@ +/** + * Layout for the horizontal top bar + * dmenu we all know and love + * + */ + +@import "../settings.rasi" +* { + background-color: @background; + border-color: @accent; + text-color: @foreground; + font: @text-font; +} + +#window { + anchor: north; + location: north; + width: 100%; + padding: 4px; + children: [ horizbox ]; +} + +#horizbox { + orientation: horizontal; + children: [ prompt, entry, listview ]; +} + +#listview { + layout: horizontal; + spacing: 5px; + lines: 100; +} + +#entry { + expand: false; + width: 10em; +} + +#element { + padding: 0px 2px; +} +#element selected { + background-color: @background-focus; +} diff --git a/.config/rofi/themes/layouts/list-horizontal.rasi b/.config/rofi/themes/layouts/list-horizontal.rasi index db4948f..2548bbe 100644 --- a/.config/rofi/themes/layouts/list-horizontal.rasi +++ b/.config/rofi/themes/layouts/list-horizontal.rasi @@ -18,6 +18,7 @@ children: [ listview ]; layout: horizontal; } #element { +option-element-padding: 88px 100px 81px 4px; padding: @option-element-padding; background-color: @background-nofocus; text-color: @foreground-nofocus;