Merge branch 'master' into onedark-theme

This commit is contained in:
Rasmus Steinke 2018-04-16 21:00:55 +02:00 committed by GitHub
commit 1803b2f966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 107 additions and 8 deletions

View file

@ -58,5 +58,5 @@
selected-urgent-foreground: @urgent-foreground; selected-urgent-foreground: @urgent-foreground;
} }
@import "gruvbox-common.rasi" @import "gruvbox-common.inc"

View file

@ -58,5 +58,5 @@
selected-urgent-foreground: @urgent-foreground; selected-urgent-foreground: @urgent-foreground;
} }
@import "gruvbox-common.rasi" @import "gruvbox-common.inc"

View file

@ -58,5 +58,4 @@
selected-urgent-foreground: @urgent-foreground; selected-urgent-foreground: @urgent-foreground;
} }
@import "gruvbox-common.rasi" @import "gruvbox-common.inc"

View file

@ -58,5 +58,5 @@
selected-urgent-foreground: @urgent-foreground; selected-urgent-foreground: @urgent-foreground;
} }
@import "gruvbox-common.rasi" @import "gruvbox-common.inc"

View file

@ -58,5 +58,5 @@
selected-urgent-foreground: @urgent-foreground; selected-urgent-foreground: @urgent-foreground;
} }
@import "gruvbox-common.rasi" @import "gruvbox-common.inc"

View file

@ -58,5 +58,5 @@
selected-urgent-foreground: @urgent-foreground; selected-urgent-foreground: @urgent-foreground;
} }
@import "gruvbox-common.rasi" @import "gruvbox-common.inc"

View file

@ -20,4 +20,7 @@
![arc-red-dark](https://53280.de/rofi/arc-red.png) ![arc-red-dark](https://53280.de/rofi/arc-red.png)
#### onedark #### onedark
![onedark](https://i.imgur.com/d2jmZ06.png) ![onedark](https://53280.de/rofi/onedark.png)
#### ribbon
![ribbon](https://53280.de/rofi/ribbon.png)

62
User Themes/ribbon.rasi Normal file
View file

@ -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;
}

35
install.sh Executable file
View file

@ -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