hyprland + waybar + GTK (Catpuccin)

This commit is contained in:
nx2
2024-04-01 16:42:51 +02:00
parent da22e65d5a
commit 06d616a6e5
779 changed files with 101007 additions and 103 deletions

16
theme_oomox/scripts/is_dark.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
script_dir="$(readlink -f "$(dirname "${0}")")"
is_dark() {
hexinput=$(echo "${1}" | tr '[:lower:]' '[:upper:]')
half_darker=$("${script_dir}/darker.sh" "${hexinput}" 88)
if [[ "${half_darker}" = "000000" ]] ; then
return 0;
else
return 1;
fi
}
is_dark "$@"