Add a setup.test file

This commit is contained in:
Nemo 2021-06-09 23:18:06 +05:30
parent cf09f66b60
commit 5aeae79061
1 changed files with 27 additions and 0 deletions

27
setup.test Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
# This script tests my current local setup
# and ensures everything is correctly configured
function validate_command() {
if ! command -v "$1" &> /dev/null
then
echo "[missing] $1: $2"
fi
}
pidof xss-lock >/dev/null || echo "[E] xss-lock is not running"
validate_command multilockscreen
validate_command yubikey-touch-detector
validate_command yubikey-touch-detector
validate_command redshift-gtk
validate_command xfsettingsd
validate_command ibus-daemon
validate_command goldendict
validate_command autorandr
validate_command alacritty
validate_command dunst
validate_command flameshot
validate_command passmenu
validate_command dmenu_run
validate_command connman-gtk "Optional"