Add reboot to kodi option

This commit is contained in:
Marko Korhonen 2020-03-30 18:21:00 +03:00
parent 7ad3fa007d
commit e0629e3676
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
2 changed files with 7 additions and 1 deletions

View file

@ -1 +1,5 @@
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && sway > /dev/null 2>&1
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