From ef7593d473aaeba04417b791ef77811d649aa754 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 20 Nov 2024 18:55:00 -0500 Subject: [PATCH] fish: darkmode/lightmode alias --- src/dot_config/fish/aliases.fish | 11 +++++++++++ src/dot_config/vars.tmpl | 4 ---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/dot_config/fish/aliases.fish b/src/dot_config/fish/aliases.fish index e5cca36..54b9c51 100644 --- a/src/dot_config/fish/aliases.fish +++ b/src/dot_config/fish/aliases.fish @@ -9,9 +9,20 @@ function hide end end +function darkmode + niri msg action do-screen-transition + gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' +end +function lightmode + niri msg action do-screen-transition + gsettings set org.gnome.desktop.interface color-scheme 'default' +end + alias mpv='hide mpv mpv' alias imvi='hide swayimg imgv.sh' +alias neofetch='fastfetch' + # prevent clobbering files alias mv='mv -n' alias cp='cp -n' diff --git a/src/dot_config/vars.tmpl b/src/dot_config/vars.tmpl index bc13c3c..4fa546d 100644 --- a/src/dot_config/vars.tmpl +++ b/src/dot_config/vars.tmpl @@ -72,10 +72,6 @@ if [ -r "$XDG_CONFIG_HOME"/identity ]; then . "$XDG_CONFIG_HOME"/identity fi -if command -v gsettings > /dev/null; then - gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' -fi - # Profile to enable/disable features on certain devices export SYSTEM_PROFILE={{ .systemprofile | quote }}