#!/usr/bin/env bash # Pascal Jaeger # utils green="\033[0;32m" red="\033[0;31m" blue="\033[0;34m" nocolor="\033[0m" #util functions check() { command -v "$1" 1>/dev/null } ok() { echo -e "[$green  $nocolor] $*" } err() { echo -e "[$red  $nocolor] $*" } optional() { echo -e "[$blue  $nocolor] $*" } notify() { # shellcheck disable=SC2015 check notify-send && { notify-send "$@" } || { echo "$@" } } checkUtils() { # shellcheck disable=SC2015 check grep && ok "grep" || err "grep" # shellcheck disable=SC2015 check grep && ok "cut" || err "cut" # shellcheck disable=SC2015 check notify-send && ok "notify-send (Optional)" || optional "notify-send (Optional)" exit } basicChecks() { check hyprctl || { notify "Seriously mate!!" "Start Hyprland before this script" exit 1 } pgrep -x Hyprland &>/dev/null || { notify "Make Sure Hyprland Session is running." exit 1 } } help() { cat <