aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMiran Bastaja <mbastaja@sorre.xyz>2025-06-29 17:39:41 +0200
committerMiran Bastaja <mbastaja@sorre.xyz>2025-06-29 17:51:04 +0200
commitc344c1356b41e9c0173d82cc1d50691678a713a3 (patch)
tree8dcbfc5ef1dc8f4a9f4b9ae496a5b611fe8e8346 /share
parent4a9fc970ea2080f01a426d6ced6ff26139ac1e8b (diff)
niri stuff
Diffstat (limited to 'share')
-rw-r--r--share/cfg/darkman.nix34
-rw-r--r--share/home/niri.nix6
2 files changed, 40 insertions, 0 deletions
diff --git a/share/cfg/darkman.nix b/share/cfg/darkman.nix
new file mode 100644
index 0000000..538d404
--- /dev/null
+++ b/share/cfg/darkman.nix
@@ -0,0 +1,34 @@
+{ ... }:
+{
+ services.darkman = {
+ lightModeScripts = {
+ gtk = ''
+ # gtk3
+ gsettings set org.gnome.desktop.interface gtk-theme Adwaita
+
+ # gtk4
+ niri msg action do-screen-transition && \
+ gsettings set org.gnome.desktop.interface color-scheme prefer-light
+ '';
+
+ notification = ''
+ notify-send -c "system" " Light mode"
+ '';
+ };
+
+ darkModeScripts = {
+ gtk = ''
+ # gtk3
+ gsettings set org.gnome.desktop.interface gtk-theme Arc-Dark
+
+ # gtk4
+ niri msg action do-screen-transition && \
+ gsettings set org.gnome.desktop.interface color-scheme prefer-dark
+ '';
+
+ notification = ''
+ notify-send -c "system" " Dark mode"
+ '';
+ };
+ };
+}
diff --git a/share/home/niri.nix b/share/home/niri.nix
new file mode 100644
index 0000000..52d2ed4
--- /dev/null
+++ b/share/home/niri.nix
@@ -0,0 +1,6 @@
+{ pkgs, ... }:
+{
+ home.packages = with pkgs; [ xwayland-satellite ];
+ programs.waybar.enable = true;
+ programs.tofi.enable = true;
+}