fish: darkmode/lightmode alias
This commit is contained in:
parent
6b8b86c7c0
commit
ef7593d473
@ -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'
|
||||
|
@ -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 }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user