fish: darkmode/lightmode alias

This commit is contained in:
dogeystamp 2024-11-20 18:55:00 -05:00
parent 6b8b86c7c0
commit ef7593d473
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 11 additions and 4 deletions

View File

@ -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'

View File

@ -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 }}