From 7654df2f9cb61572636183887d0832e448957689 Mon Sep 17 00:00:00 2001 From: axtlos Date: Fri, 28 Jun 2024 01:44:19 +0200 Subject: misc: add dark/light scripts --- README.md | 7 +++++++ misc/dark_gnome.sh | 2 ++ misc/dark_kde.sh | 2 ++ misc/dark_niri.sh | 2 ++ misc/light_gnome.sh | 3 +++ misc/light_kde.sh | 2 ++ misc/light_niri.sh | 3 +++ xen.nya.autodark.json | 4 ++-- 8 files changed, 23 insertions(+), 2 deletions(-) create mode 100755 misc/dark_gnome.sh create mode 100755 misc/dark_kde.sh create mode 100755 misc/dark_niri.sh create mode 100755 misc/light_gnome.sh create mode 100755 misc/light_kde.sh create mode 100755 misc/light_niri.sh diff --git a/README.md b/README.md index fc0f7d2..82af2e6 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,10 @@ cmd = "notify-send 'a'" cmd = "notify-send 'b'" ``` autodarkmode expects to find this configuration in `$XDG_CONFIG_HOME/autodarkmode/config.ini`, in the case that XDG_CONFIG_HOME is empty, it will use `~/.config/autodarkmode/config.ini` + +# Misc files +the `misc` folder contains various scripts/examples that can make setting up autodarkmode easier. + +the `autodarkmode.service` file is a systemd service that can be put in `~/.config/systemd/user/` and enabled through `systemctl --user enable autodarkmode` to make it automatically launch on login. + +the `light_.sh` and `dark_.sh` scripts are already finished scripts that work for the desktop they are made for, they can be extended or just used as is. diff --git a/misc/dark_gnome.sh b/misc/dark_gnome.sh new file mode 100755 index 0000000..66183af --- /dev/null +++ b/misc/dark_gnome.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' diff --git a/misc/dark_kde.sh b/misc/dark_kde.sh new file mode 100755 index 0000000..0471e80 --- /dev/null +++ b/misc/dark_kde.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +plasma-apply-lookandfeel -a org.kde.breezedark.desktop diff --git a/misc/dark_niri.sh b/misc/dark_niri.sh new file mode 100755 index 0000000..90a4d37 --- /dev/null +++ b/misc/dark_niri.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +niri msg action do-screen-transition && gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' diff --git a/misc/light_gnome.sh b/misc/light_gnome.sh new file mode 100755 index 0000000..3005cdc --- /dev/null +++ b/misc/light_gnome.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +gsettings set org.gnome.desktop.interface color-scheme 'default' + diff --git a/misc/light_kde.sh b/misc/light_kde.sh new file mode 100755 index 0000000..11ec1ed --- /dev/null +++ b/misc/light_kde.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +plasma-apply-lookandfeel -a org.kde.breeze.desktop diff --git a/misc/light_niri.sh b/misc/light_niri.sh new file mode 100755 index 0000000..2920fb7 --- /dev/null +++ b/misc/light_niri.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +niri msg action do-screen-transition && gsettings set org.gnome.desktop.interface color-scheme 'default' + diff --git a/xen.nya.autodark.json b/xen.nya.autodark.json index 5fadee4..36e4db9 100644 --- a/xen.nya.autodark.json +++ b/xen.nya.autodark.json @@ -25,8 +25,8 @@ "buildsystem" : "meson", "sources" : [ { - "type" : "git", - "url" : "file:///home/xen/Projects" + "type" : "dir", + "url" : "." } ] } -- cgit v1.2.3