From 83f7b5b447e96e9746358217629591b4660765bb Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 20 Jul 2024 08:13:52 +0300 Subject: [PATCH] darkman: script for detecting distro specific themes --- local/share/dark-mode.d/13-plasma-distro-themes.bash | 7 +++++++ local/share/dark-mode.d/zz-kde-plasma-theme-kalipurple.sh | 2 -- local/share/light-mode.d/13-plasma-distro-themes.bash | 7 +++++++ local/share/light-mode.d/zz-kde-plasma-theme-kalipurple.sh | 2 -- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100755 local/share/dark-mode.d/13-plasma-distro-themes.bash delete mode 100755 local/share/dark-mode.d/zz-kde-plasma-theme-kalipurple.sh create mode 100755 local/share/light-mode.d/13-plasma-distro-themes.bash delete mode 100755 local/share/light-mode.d/zz-kde-plasma-theme-kalipurple.sh diff --git a/local/share/dark-mode.d/13-plasma-distro-themes.bash b/local/share/dark-mode.d/13-plasma-distro-themes.bash new file mode 100755 index 00000000..6a7b8ddc --- /dev/null +++ b/local/share/dark-mode.d/13-plasma-distro-themes.bash @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh + +if [[ "$DISTROID" == "Kali" ]]; then + lookandfeeltool --apply "Kali-Purple-Dark" +fi diff --git a/local/share/dark-mode.d/zz-kde-plasma-theme-kalipurple.sh b/local/share/dark-mode.d/zz-kde-plasma-theme-kalipurple.sh deleted file mode 100755 index 36b4e16f..00000000 --- a/local/share/dark-mode.d/zz-kde-plasma-theme-kalipurple.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -lookandfeeltool --apply "Kali-Purple-Dark" diff --git a/local/share/light-mode.d/13-plasma-distro-themes.bash b/local/share/light-mode.d/13-plasma-distro-themes.bash new file mode 100755 index 00000000..16fb7940 --- /dev/null +++ b/local/share/light-mode.d/13-plasma-distro-themes.bash @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh + +if [[ "$DISTROID" == "Kali" ]]; then + lookandfeeltool --apply "Kali-Purple-Light" +fi diff --git a/local/share/light-mode.d/zz-kde-plasma-theme-kalipurple.sh b/local/share/light-mode.d/zz-kde-plasma-theme-kalipurple.sh deleted file mode 100755 index 86f653e7..00000000 --- a/local/share/light-mode.d/zz-kde-plasma-theme-kalipurple.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -lookandfeeltool --apply "Kali-Purple-Light"