diff --git a/command.list b/command.list index e69de29..7ec30e1 100644 --- a/command.list +++ b/command.list @@ -0,0 +1,4 @@ +^pacman -Syyu +^[ -d /tmp/yay ] && rm -rf /tmp/yay +git clone https://aur.archlinux.org/yay /tmp/yay +cd /tmp/yay && makepkg --noconfirm -si && echo $PREF_TERM \ No newline at end of file diff --git a/lib/lib.sh b/lib/lib.sh index b8e0419..b703116 100644 --- a/lib/lib.sh +++ b/lib/lib.sh @@ -1,5 +1,7 @@ #!/bin/sh +. ./sync.conf || . ../sync.conf + DRY_RUN=${DRY_RUN:-no} bool() { @@ -17,3 +19,7 @@ run() { "$@" fi } + +is_graphical() { + command -v $PREF_TERM && return 0 || return 1 +} \ No newline at end of file diff --git a/sync.conf b/sync.conf index 139ef97..2a6caa7 100644 --- a/sync.conf +++ b/sync.conf @@ -7,4 +7,9 @@ PM_UPDATE_ARG=${PM_UPDATE_ARG:-Sy} # SYS - System Options SYS_SUDO=${SYS_SUDO:-"sudo"} -SYS_ROOT=${SYS_ROOT:-"/"} \ No newline at end of file +SYS_ROOT=${SYS_ROOT:-"/"} + +# PREF - Preferences +PREF_TERM=${PREF_TERM:-alacritty} +PREF_TERM_SET_TITLE=${PREF_TERM_SET_TITLE:--t} +PREF_TERM_RUN_CMD=${PREF_TERM_RUN_CMD:--e} \ No newline at end of file