From abeb18eee6ac24e04abffe9313ceeebef7ac99c6 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 15 Feb 2018 16:19:25 +0100 Subject: [PATCH 1/6] Small install script. --- install.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..69f4b85 --- /dev/null +++ b/install.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +DIRECTORY=${HOME}/.local/share/rofi/themes/ + +if [ ! -d "${DIRECTORY}" ] +then + echo "Creating theme directory: ${DIRECTORY}" + mkdir -p "${DIRECTORY}" +fi + +declare -i ia=0 +for themefile in **/*.rasi +do + if [ -f "${themefile}" ] && [ ${ia} -eq 0 ] + then + echo "Theme '${themefile}' exists, overwrite? y/N/a(ll)" + read answer + if [ x$answer = x"y" ] + then + echo "+Installing '${themefile}'" + install "${themefile}" "${DIRECTORY}" + elif [ x${answer} = x"a" ] + then + ia=1 + echo "+Installing '${themefile}'" + install "${themefile}" "${DIRECTORY}" + else + echo "+Skipping ${themefile}" + fi + else + echo "+Installing '${themefile}'" + install "${themefile}" "${DIRECTORY}" + fi +done From 68f68a050c58531792cba30ac69cc4560922e068 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sat, 24 Mar 2018 16:51:08 +0100 Subject: [PATCH 2/6] rename gruvbox-common.rasi to gruvbox-common.inc, to hide it from rofi-theme-selector --- Official Themes/gruvbox-common.inc | 127 ++++++++++++++++++++++++ Official Themes/gruvbox-dark-hard.rasi | 2 +- Official Themes/gruvbox-dark-soft.rasi | 2 +- Official Themes/gruvbox-dark.rasi | 3 +- Official Themes/gruvbox-light-hard.rasi | 2 +- Official Themes/gruvbox-light-soft.rasi | 2 +- Official Themes/gruvbox-light.rasi | 2 +- 7 files changed, 133 insertions(+), 7 deletions(-) create mode 100644 Official Themes/gruvbox-common.inc diff --git a/Official Themes/gruvbox-common.inc b/Official Themes/gruvbox-common.inc new file mode 100644 index 0000000..f7a168d --- /dev/null +++ b/Official Themes/gruvbox-common.inc @@ -0,0 +1,127 @@ +/* ========================================================================== + File: gruvbox-common.rasi + Desc: Shared rules between all gruvbox themes + Author: bardisty + Source: https://github.com/bardisty/gruvbox-rofi + Modified: Mon Feb 12 2018 06:06:47 PST -0800 + ========================================================================== */ + +window { + background-color: @background; + border: 2; + padding: 2; +} + +mainbox { + border: 0; + padding: 0; +} + +message { + border: 2px 0 0; + border-color: @separatorcolor; + padding: 1px; +} + +textbox { + highlight: @highlight; + text-color: @foreground; +} + +listview { + border: 2px solid 0 0; + padding: 2px 0 0; + border-color: @separatorcolor; + spacing: 2px; + scrollbar: @scrollbar; +} + +element { + border: 0; + padding: 2px; +} + +element.normal.normal { + background-color: @normal-background; + text-color: @normal-foreground; +} + +element.normal.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; +} + +element.normal.active { + background-color: @active-background; + text-color: @active-foreground; +} + +element.selected.normal { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} + +element.selected.urgent { + background-color: @selected-urgent-background; + text-color: @selected-urgent-foreground; +} + +element.selected.active { + background-color: @selected-active-background; + text-color: @selected-active-foreground; +} + +element.alternate.normal { + background-color: @alternate-normal-background; + text-color: @alternate-normal-foreground; +} + +element.alternate.urgent { + background-color: @alternate-urgent-background; + text-color: @alternate-urgent-foreground; +} + +element.alternate.active { + background-color: @alternate-active-background; + text-color: @alternate-active-foreground; +} + +scrollbar { + width: 4px; + border: 0; + handle-color: @scrollbar-handle; + handle-width: 8px; + padding: 0; +} + +sidebar { + border: 2px 0 0; + border-color: @separatorcolor; +} + +inputbar { + spacing: 0; + text-color: @normal-foreground; + padding: 2px; + children: [ prompt, textbox-prompt-sep, entry, case-indicator ]; +} + +case-indicator, +entry, +prompt, +button { + spacing: 0; + text-color: @normal-foreground; +} + +button.selected { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} + +textbox-prompt-sep { + expand: false; + str: ":"; + text-color: @normal-foreground; + margin: 0 0.3em 0 0; +} diff --git a/Official Themes/gruvbox-dark-hard.rasi b/Official Themes/gruvbox-dark-hard.rasi index f09507e..fdd9018 100644 --- a/Official Themes/gruvbox-dark-hard.rasi +++ b/Official Themes/gruvbox-dark-hard.rasi @@ -58,5 +58,5 @@ selected-urgent-foreground: @urgent-foreground; } -@import "gruvbox-common.rasi" +@import "gruvbox-common.inc" diff --git a/Official Themes/gruvbox-dark-soft.rasi b/Official Themes/gruvbox-dark-soft.rasi index d080824..4f91844 100644 --- a/Official Themes/gruvbox-dark-soft.rasi +++ b/Official Themes/gruvbox-dark-soft.rasi @@ -58,5 +58,5 @@ selected-urgent-foreground: @urgent-foreground; } -@import "gruvbox-common.rasi" +@import "gruvbox-common.inc" diff --git a/Official Themes/gruvbox-dark.rasi b/Official Themes/gruvbox-dark.rasi index 6bec127..945d4a7 100644 --- a/Official Themes/gruvbox-dark.rasi +++ b/Official Themes/gruvbox-dark.rasi @@ -58,5 +58,4 @@ selected-urgent-foreground: @urgent-foreground; } -@import "gruvbox-common.rasi" - +@import "gruvbox-common.inc" diff --git a/Official Themes/gruvbox-light-hard.rasi b/Official Themes/gruvbox-light-hard.rasi index e0efe33..bfb02c5 100644 --- a/Official Themes/gruvbox-light-hard.rasi +++ b/Official Themes/gruvbox-light-hard.rasi @@ -58,5 +58,5 @@ selected-urgent-foreground: @urgent-foreground; } -@import "gruvbox-common.rasi" +@import "gruvbox-common.inc" diff --git a/Official Themes/gruvbox-light-soft.rasi b/Official Themes/gruvbox-light-soft.rasi index 43ddb6b..35a2a4b 100644 --- a/Official Themes/gruvbox-light-soft.rasi +++ b/Official Themes/gruvbox-light-soft.rasi @@ -58,5 +58,5 @@ selected-urgent-foreground: @urgent-foreground; } -@import "gruvbox-common.rasi" +@import "gruvbox-common.inc" diff --git a/Official Themes/gruvbox-light.rasi b/Official Themes/gruvbox-light.rasi index f804156..eb7acd7 100644 --- a/Official Themes/gruvbox-light.rasi +++ b/Official Themes/gruvbox-light.rasi @@ -58,5 +58,5 @@ selected-urgent-foreground: @urgent-foreground; } -@import "gruvbox-common.rasi" +@import "gruvbox-common.inc" From 82044f4aff555a92ea5611429156b611c00407c7 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sat, 24 Mar 2018 16:54:28 +0100 Subject: [PATCH 3/6] rename gruvbox-common.rasi to gruvbox-common.inc, to hide it from rofi-theme-selector --- Official Themes/gruvbox-common.rasi | 127 ---------------------------- 1 file changed, 127 deletions(-) delete mode 100644 Official Themes/gruvbox-common.rasi diff --git a/Official Themes/gruvbox-common.rasi b/Official Themes/gruvbox-common.rasi deleted file mode 100644 index f7a168d..0000000 --- a/Official Themes/gruvbox-common.rasi +++ /dev/null @@ -1,127 +0,0 @@ -/* ========================================================================== - File: gruvbox-common.rasi - Desc: Shared rules between all gruvbox themes - Author: bardisty - Source: https://github.com/bardisty/gruvbox-rofi - Modified: Mon Feb 12 2018 06:06:47 PST -0800 - ========================================================================== */ - -window { - background-color: @background; - border: 2; - padding: 2; -} - -mainbox { - border: 0; - padding: 0; -} - -message { - border: 2px 0 0; - border-color: @separatorcolor; - padding: 1px; -} - -textbox { - highlight: @highlight; - text-color: @foreground; -} - -listview { - border: 2px solid 0 0; - padding: 2px 0 0; - border-color: @separatorcolor; - spacing: 2px; - scrollbar: @scrollbar; -} - -element { - border: 0; - padding: 2px; -} - -element.normal.normal { - background-color: @normal-background; - text-color: @normal-foreground; -} - -element.normal.urgent { - background-color: @urgent-background; - text-color: @urgent-foreground; -} - -element.normal.active { - background-color: @active-background; - text-color: @active-foreground; -} - -element.selected.normal { - background-color: @selected-normal-background; - text-color: @selected-normal-foreground; -} - -element.selected.urgent { - background-color: @selected-urgent-background; - text-color: @selected-urgent-foreground; -} - -element.selected.active { - background-color: @selected-active-background; - text-color: @selected-active-foreground; -} - -element.alternate.normal { - background-color: @alternate-normal-background; - text-color: @alternate-normal-foreground; -} - -element.alternate.urgent { - background-color: @alternate-urgent-background; - text-color: @alternate-urgent-foreground; -} - -element.alternate.active { - background-color: @alternate-active-background; - text-color: @alternate-active-foreground; -} - -scrollbar { - width: 4px; - border: 0; - handle-color: @scrollbar-handle; - handle-width: 8px; - padding: 0; -} - -sidebar { - border: 2px 0 0; - border-color: @separatorcolor; -} - -inputbar { - spacing: 0; - text-color: @normal-foreground; - padding: 2px; - children: [ prompt, textbox-prompt-sep, entry, case-indicator ]; -} - -case-indicator, -entry, -prompt, -button { - spacing: 0; - text-color: @normal-foreground; -} - -button.selected { - background-color: @selected-normal-background; - text-color: @selected-normal-foreground; -} - -textbox-prompt-sep { - expand: false; - str: ":"; - text-color: @normal-foreground; - margin: 0 0.3em 0 0; -} From f8702c6c679a927a43e8cdad74bd5be2988a6c0d Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sun, 8 Apr 2018 10:41:04 +0200 Subject: [PATCH 4/6] Make sure XDG_DATA_HOME is used, if set. --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 69f4b85..ee69fcd 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -DIRECTORY=${HOME}/.local/share/rofi/themes/ +xdg=${${XDG_DATA_HOME}:-${HOME}/.local/share} +DIRECTORY="${xdg}/rofi/themes/}" if [ ! -d "${DIRECTORY}" ] then From 88674a600cf633a4d9541be117410bed90f4d1ae Mon Sep 17 00:00:00 2001 From: Rokit Date: Mon, 16 Apr 2018 09:50:19 -0500 Subject: [PATCH 5/6] added ribbon theme removed style: italic --- User Themes/ribbon.rasi | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 User Themes/ribbon.rasi diff --git a/User Themes/ribbon.rasi b/User Themes/ribbon.rasi new file mode 100644 index 0000000..26ac162 --- /dev/null +++ b/User Themes/ribbon.rasi @@ -0,0 +1,62 @@ +/** + * ROFI Color theme + * User: Rokit +*/ + +* { + base-bg: #d9d6b7ee; + selected-bg: #f7f0ac; + base-color: #222222aa; + selected-color: #222; + border-color: #00000066; + transparent: #00000000; + text-color: @base-color; + font: "Times New Roman 20"; +} +#window { + anchor: south; + location: south; + width: 100%; + background-color: @base-bg; + margin: 0px 0px 10% 0px; + children: [ horibox ]; +} +#horibox { + background-color: @transparent; + orientation: horizontal; + children: [ prompt, textbox-prompt-colon, entry, listview ]; +} +#prompt { + text-color: @selected-color; + padding: 0.7em 0px 0.7em 10px; + background-color: @transparent; +} +#textbox-prompt-colon { + expand: false; + str: ":"; + padding: 0.7em 10px 0.7em 0px; + text-color: @selected-color; + background-color: @transparent; +} +#entry { + padding: 0.7em; + text-color: @selected-color; + background-color: #eee; + expand: false; + width: 10em; +} +#listview { + background-color: @transparent; + layout: horizontal; + spacing: 5px; + lines: 100; +} +#element { + background-color: @transparent; + padding: 0.7em; +} +#element selected { + border: 0px 1px; + text-color: @selected-color; + background-color: @selected-bg; +} From b994b1ea444dc3c6a60e62f479c0f1a625a96a5e Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Mon, 16 Apr 2018 20:58:43 +0200 Subject: [PATCH 6/6] Update README.md --- User Themes/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/User Themes/README.md b/User Themes/README.md index 2774a7e..79ebe3f 100644 --- a/User Themes/README.md +++ b/User Themes/README.md @@ -18,3 +18,6 @@ #### arc-red-dark ![arc-red-dark](https://53280.de/rofi/arc-red.png) + +#### ribbon +![ribbon](https://53280.de/rofi/ribbon.png)