Added random xkcd script

This commit is contained in:
Ezri 2024-04-10 10:54:23 -06:00
parent 4a0c72174b
commit 7d9b9ff999
Signed by: ezri
GPG Key ID: 058A78E5680C6F24

View File

@ -12,6 +12,10 @@ function getkernelpkg() {
fi fi
} }
function random-xkcd() {
curl $(curl -L https://c.xkcd.com/random/comic/ 2>/dev/null | (echo "https:"$(xmllint --html --xpath 'string(//html/body/div[@id="middleContainer"]/div[@id="comic"]/img/@src)' - 2>/dev/null))) | feh -
}
if [[ $(hostnamectl chassis) == "container" ]]; then if [[ $(hostnamectl chassis) == "container" ]]; then
DEFAULT_WINDOW_NAME="Container Connection: [ $os_icon $hostname Console ]" DEFAULT_WINDOW_NAME="Container Connection: [ $os_icon $hostname Console ]"
elif [[ -z "${SSH_CONNECTION+x}" ]]; then elif [[ -z "${SSH_CONNECTION+x}" ]]; then