diff options
Diffstat (limited to '.local/share/darkman')
| -rwxr-xr-x | .local/share/darkman/bg.sh | 10 | ||||
| -rwxr-xr-x | .local/share/darkman/foot.sh | 14 | ||||
| -rwxr-xr-x | .local/share/darkman/fuzzel.sh | 12 | ||||
| -rwxr-xr-x | .local/share/darkman/gtk3.sh | 12 | ||||
| -rwxr-xr-x | .local/share/darkman/mako.sh | 14 |
5 files changed, 62 insertions, 0 deletions
diff --git a/.local/share/darkman/bg.sh b/.local/share/darkman/bg.sh new file mode 100755 index 0000000..a6d4c3e --- /dev/null +++ b/.local/share/darkman/bg.sh @@ -0,0 +1,10 @@ +#!/bin/sh +set -eu + +case "$1" in +light|dark) + ln -sf ${XDG_PICTURES_DIR}/bg_${1}.jpg ${XDG_PICTURES_DIR}/bg.jpg + rc-service -U swaybg restart + ;; +default) exit 1 ;; +esac diff --git a/.local/share/darkman/foot.sh b/.local/share/darkman/foot.sh new file mode 100755 index 0000000..3f9ac81 --- /dev/null +++ b/.local/share/darkman/foot.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -eu + +case "$1" in +dark) + echo "initial-color-theme=1" > ~/.config/foot/colors.ini + killall -s SIGUSR1 foot + ;; +light) + echo "initial-color-theme=2" > ~/.config/foot/colors.ini + killall -s SIGUSR2 foot + ;; +default) exit 1 ;; +esac diff --git a/.local/share/darkman/fuzzel.sh b/.local/share/darkman/fuzzel.sh new file mode 100755 index 0000000..a51cd39 --- /dev/null +++ b/.local/share/darkman/fuzzel.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -eu + +case "$1" in +dark) + echo "include=~/.config/fuzzel/colors-dark.ini" > ~/.config/fuzzel/colors.ini + ;; +light) + echo "include=~/.config/fuzzel/colors-light.ini" > ~/.config/fuzzel/colors.ini + ;; +default) exit 1 ;; +esac diff --git a/.local/share/darkman/gtk3.sh b/.local/share/darkman/gtk3.sh new file mode 100755 index 0000000..1b6ff21 --- /dev/null +++ b/.local/share/darkman/gtk3.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -eu + +case "$1" in +dark) + gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3-dark + ;; +light) + gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3 + ;; +default) exit 1 ;; +esac diff --git a/.local/share/darkman/mako.sh b/.local/share/darkman/mako.sh new file mode 100755 index 0000000..dd50242 --- /dev/null +++ b/.local/share/darkman/mako.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -eu + +case "$1" in +dark) + echo "include=~/.config/mako/colors-dark" > ~/.config/mako/colors + makoctl reload + ;; +light) + echo "include=~/.config/mako/colors-light" > ~/.config/mako/colors + makoctl reload + ;; +default) exit 1 ;; +esac |