by roundabout, Sunday, 6 January 2019, 06:15:32 (1546755332), pushed by roundabout, Sunday, 11 May 2025, 13:22:31 (1746969751)
Author identity: nana-4 <nana-4@users.noreply.github.com>
d62699caaace098987c31d544ff03f9a6b3760ab
install.sh
@@ -15,7 +15,7 @@ GS_VERSIONS=('3.18' '3.24' '3.26' '3.28' '3.30')
LATEST_GS_VERSION="${GS_VERSIONS[-1]}"
# Set a proper gnome-shell theme version
if [[ "$(which gnome-shell 2> /dev/null)" ]]; then
if command -v gnome-shell >/dev/null ; then
CURRENT_GS_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -2)"
for version in "${GS_VERSIONS[@]}"; do
if (( "$(bc <<< "$CURRENT_GS_VERSION <= $version")" )); then
@@ -123,7 +123,7 @@ install_gdm() {
local GS_THEME_FILE="/usr/share/gnome-shell/gnome-shell-theme.gresource"
local UBUNTU_THEME_FILE="/usr/share/gnome-shell/theme/ubuntu.css"
if [[ -f "$GS_THEME_FILE" ]] && [[ "$(which glib-compile-resources 2> /dev/null)" ]]; then
if [[ -f "$GS_THEME_FILE" ]] && command -v glib-compile-resources >/dev/null ; then
echo "Installing '$GS_THEME_FILE'..."
cp -an "$GS_THEME_FILE" "$GS_THEME_FILE.bak"
glib-compile-resources \
@@ -156,7 +156,7 @@ while [[ "$#" -gt 0 ]]; do
;;
-g|--gdm)
gdm='true'
shift 1
shift 1
;;
-c|--color)
shift
parse-sass.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -ueo pipefail
if [[ ! "$(which sassc 2> /dev/null)" ]]; then
if [[ ! "$(command -v sassc)" ]]; then
echo "'sassc' needs to be installed to generate the CSS."
exit 1
fi
@@ -14,11 +14,11 @@ _SIZE_VARIANTS=('' '-compact')
GTK_VERSIONS=('3.0')
GS_VERSIONS=('3.18' '3.24' '3.26' '3.28' '3.30')
if [[ ! -z "${COLOR_VARIANTS:-}" ]]; then
if [[ -n "${COLOR_VARIANTS:-}" ]]; then
IFS=', ' read -r -a _COLOR_VARIANTS <<< "${COLOR_VARIANTS:-}"
fi
if [[ ! -z "${SIZE_VARIANTS:-}" ]]; then
if [[ -n "${SIZE_VARIANTS:-}" ]]; then
IFS=', ' read -r -a _SIZE_VARIANTS <<< "${SIZE_VARIANTS:-}"
fi
render-assets.sh
@@ -1,17 +1,17 @@
#!/bin/bash
set -ueo pipefail
if [[ ! "$(which inkscape 2> /dev/null || which rendersvg 2> /dev/null)" ]]; then
if [[ ! "$(command -v inkscape || command -v rendersvg)" ]]; then
echo "'inkscape' or 'resvg' needs to be installed to generate the PNG."
exit 1
fi
if [[ ! "$(which optipng 2> /dev/null)" ]]; then
if [[ ! "$(command -v optipng)" ]]; then
echo "'optipng' needs to be installed to optimize the resulting PNG!"
fi
chrome() (
cd src/chrome
cd ./src/chrome
./render-assets.sh
)
src/chrome/render-assets.sh
@@ -3,7 +3,7 @@ set -ueo pipefail
# Make sure that parallel is GNU parallel and not moreutils.
# Otherwise, it fails silently. There's no smooth way to detect this.
if [[ "$(which parallel 2> /dev/null)" ]]; then
if command -v parallel >/dev/null ; then
cmd=(parallel)
else
cmd=(xargs -n1)
src/gtk-2.0/render-assets.sh
@@ -3,7 +3,7 @@ set -ueo pipefail
# Make sure that parallel is GNU parallel and not moreutils.
# Otherwise, it fails silently. There's no smooth way to detect this.
if [[ "$(which parallel 2> /dev/null)" ]]; then
if command -v parallel >/dev/null ; then
cmd=(parallel)
else
cmd=(xargs -n1)
src/gtk/render-assets.sh
@@ -3,7 +3,7 @@ set -ueo pipefail
# Make sure that parallel is GNU parallel and not moreutils.
# Otherwise, it fails silently. There's no smooth way to detect this.
if [[ "$(which parallel 2> /dev/null)" ]]; then
if command -v parallel >/dev/null ; then
cmd=(parallel)
else
cmd=(xargs -n1)
test.sh
@@ -25,7 +25,7 @@ GS_VERSIONS=('3.18' '3.24' '3.26' '3.28' '3.30')
LATEST_GS_VERSION="${GS_VERSIONS[-1]}"
# Set a proper gnome-shell theme version
if [[ "$(which gnome-shell 2> /dev/null)" ]]; then
if command -v gnome-shell >/dev/null ; then
CURRENT_GS_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -2)"
for version in "${GS_VERSIONS[@]}"; do
if (( "$(bc <<< "$CURRENT_GS_VERSION <= $version")" )); then