aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md7
-rwxr-xr-xmisc/dark_gnome.sh2
-rwxr-xr-xmisc/dark_kde.sh2
-rwxr-xr-xmisc/dark_niri.sh2
-rwxr-xr-xmisc/light_gnome.sh3
-rwxr-xr-xmisc/light_kde.sh2
-rwxr-xr-xmisc/light_niri.sh3
-rw-r--r--xen.nya.autodark.json4
8 files changed, 23 insertions, 2 deletions
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_<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" : "."
}
]
}