foodotfiles/home/.zprofile
2022-09-16 20:14:04 +03:00

8 lines
441 B
Bash

if [[ -z $DISPLAY && $XDG_VTNR -eq 1 && -z "$SSH_CONNECTION" ]]; then
{%@@ if profile == 'Moria' @@%}
systemctl --user mask pipewire.service pipewire-pulse.service && systemctl --user stop pipewire.service pipewire-pulse.service && kodi; systemctl --user unmask pipewire.service pipewire-pulse.service && systemctl --user start pipewire.service pipewire-pulse.service
{%@@ elif profile == 'Mirkwood' @@%}
sway-run.sh
{%@@ endif @@%}
fi