From e0629e36762eb18dbd2f63adca690ba625425279 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Mon, 30 Mar 2020 18:21:00 +0300 Subject: [PATCH] Add reboot to kodi option --- home/.config/zsh/03-aliases.zsh | 2 ++ home/.zprofile | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/home/.config/zsh/03-aliases.zsh b/home/.config/zsh/03-aliases.zsh index c402581..7befc9e 100644 --- a/home/.config/zsh/03-aliases.zsh +++ b/home/.config/zsh/03-aliases.zsh @@ -46,6 +46,8 @@ fman() { alias :q='exit' alias :wq='exit' +alias reboot-kodi='systemctl reboot --boot-loader-entry=kodi.conf' + # zbar output only data alias zbarimg='zbarimg -q --raw' alias zbarcam='zbarcam -q --raw' diff --git a/home/.zprofile b/home/.zprofile index c7215bd..2101c12 100644 --- a/home/.zprofile +++ b/home/.zprofile @@ -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