dotfiles/home/.zprofile
2020-03-30 18:21:00 +03:00

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