Add license header and more dependency checks

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-05-16 23:36:29 -04:00
parent 3f41844283
commit 1d1ff0a885
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 23 additions and 0 deletions

View File

@ -1,4 +1,19 @@
#!/usr/bin/env bash
#
# Copyright (C) 2023 Skylar Widulski
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.
#
RUNTIME="${XDG_RUNTIME_DIR:-/run}/wf-shadow"
CONFIG="${WF_SHADOW_CONFIG:-${XDG_CONFIG_HOME:-$HOME/.config}/wf-shadow/config.sh}"
@ -21,6 +36,14 @@ if ! command -v wf-shadow &>/dev/null; then
printf 'Need wf-shadow\n'
fi
if ! command -v wlr-randr &>/dev/null; then
printf 'Need wlr-randr\n'
fi
if ! command -v dialog &>/dev/null; then
printf 'Need dialog\n'
fi
if command -v tput &>/dev/null; then
tput smcup
fi