dotfiles/home/.zprofile

5 lines
171 B
Bash

if cat /proc/cmdline | grep -q "video=eDP-1:d"; then
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && kodi
else
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && sway > /dev/null 2>&1
fi