diff --git a/Official Themes/gruvbox-common.rasi b/Official Themes/gruvbox-common.inc similarity index 100% rename from Official Themes/gruvbox-common.rasi rename to Official Themes/gruvbox-common.inc 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" diff --git a/User Themes/README.md b/User Themes/README.md index 8d90243..3d7c36c 100644 --- a/User Themes/README.md +++ b/User Themes/README.md @@ -20,4 +20,7 @@ ![arc-red-dark](https://53280.de/rofi/arc-red.png) #### onedark -![onedark](https://i.imgur.com/d2jmZ06.png) +![onedark](https://53280.de/rofi/onedark.png) + +#### ribbon +![ribbon](https://53280.de/rofi/ribbon.png) \ No newline at end of file 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; +} diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..ee69fcd --- /dev/null +++ b/install.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash + +xdg=${${XDG_DATA_HOME}:-${HOME}/.local/share} +DIRECTORY="${xdg}/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