dot_local/share/dark-mode.d/executable_desktop-notification.sh 🔗
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+notify-send --app-name="darkman" --urgency=low "Switching to dark mode"
Amolith created
dot_local/share/dark-mode.d/executable_desktop-notification.sh | 3
dot_local/share/dark-mode.d/executable_swap.sh | 13 +++
dot_local/share/light-mode.d/executable_desktop-notification.sh | 3
dot_local/share/light-mode.d/executable_swap.sh | 13 +++
4 files changed, 32 insertions(+)
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+notify-send --app-name="darkman" --urgency=low "Switching to dark mode"
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+sed -i 's/light/dark/g' ~/.config/chezmoi/chezmoi.yaml
+chezmoi apply
+xfconf-query -c xsettings -p /Net/ThemeName -s "Dracula"
+xrdb -load ~/.Xresources
+pkill polybar
+i3-msg exec "polybar top"
+i3-msg exec "polybar bottom"
+doom sync
+unlink ~/.wallpaper.png
+ln -s ~/Pictures/walls/dracula-pro.png ~/.wallpaper.png
+feh --bg-scale ~/.wallpaper.png
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+notify-send --app-name="darkman" --urgency=low "Switching to light mode"
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+sed -i 's/dark/light/g' ~/.config/chezmoi/chezmoi.yaml
+chezmoi apply
+xfconf-query -c xsettings -p /Net/ThemeName -s "Adwaita"
+xrdb -load ~/.Xresources
+pkill polybar
+i3-msg exec "polybar top"
+i3-msg exec "polybar bottom"
+doom sync
+unlink ~/.wallpaper.png
+ln -s Pictures/walls/doom-one-light.png ~/.wallpaper.png
+feh --bg-scale ~/.wallpaper.png