diff options
author | axtlos <axtlos@getcryst.al> | 2024-06-28 01:44:19 +0200 |
---|---|---|
committer | axtlos <axtlos@getcryst.al> | 2024-06-28 01:44:19 +0200 |
commit | 7654df2f9cb61572636183887d0832e448957689 (patch) | |
tree | 46ee5ede1eb124e676c4b33b8ecd9f56c6901437 | |
parent | 13abb5811c63db16cf8d208f2edf3a8a493a9a67 (diff) | |
download | autodarkmode-7654df2f9cb61572636183887d0832e448957689.tar.gz autodarkmode-7654df2f9cb61572636183887d0832e448957689.tar.bz2 |
misc: add dark/light scripts
-rw-r--r-- | README.md | 7 | ||||
-rwxr-xr-x | misc/dark_gnome.sh | 2 | ||||
-rwxr-xr-x | misc/dark_kde.sh | 2 | ||||
-rwxr-xr-x | misc/dark_niri.sh | 2 | ||||
-rwxr-xr-x | misc/light_gnome.sh | 3 | ||||
-rwxr-xr-x | misc/light_kde.sh | 2 | ||||
-rwxr-xr-x | misc/light_niri.sh | 3 | ||||
-rw-r--r-- | xen.nya.autodark.json | 4 |
8 files changed, 23 insertions, 2 deletions
@@ -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_<desktop>.sh` and `dark_<desktop>.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" : "." } ] } |