speedwm-personal/scripts/speedwm-compatcheck

40 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/bin/sh
# speedwm-compatcheck
# compatibility checker used by 'make' when compiling speedwm.
2022-10-25 19:23:36 +02:00
BINDIR="$(dirname $(command -v speedwm_status))/"
# Check if xrdb exists
if [ -e "${BINDIR}xrdb" ]; then
xrdb_exists=true
else
2022-10-11 20:35:01 +02:00
printf "Warning: ${BINDIR}xrdb was not found\n"
fi
# Check if wmctrl exists
if [ -e "${BINDIR}wmctrl" ]; then
wmctrl_exists=true
else
2022-10-11 20:35:01 +02:00
printf "Warning: ${BINDIR}wmctrl was not found\n"
fi
# Check if xwallpaper exists
if [ -e "${BINDIR}xwallpaper" ]; then
xwallpaper_exists=true
else
2022-10-11 20:35:01 +02:00
printf "Warning: ${BINDIR}xwallpaper was not found\n"
fi
# Check if xmodmap exists
if [ -e "${BINDIR}xmodmap" ]; then
xmodmap_exists=true
else
2022-10-11 20:35:01 +02:00
printf "Warning: ${BINDIR}xmodmap was not found\n"
fi
# Check if dmenu exists
command -v dmenu > /dev/null || printf "\nWARNING: dmenu was not found. This means running applications will potentially be very inconvenient. It also means most bundled scripts will NOT work unless modified to work with rofi. See help for more information"
# Check if slock exists
command -v slock > /dev/null || printf "\nWARNING: slock was not found. This means the shutdown menu can't lock your screen."