summaryrefslogtreecommitdiff
path: root/posix-shell/programs.sh
blob: 085d878b09d856bbbc4b8fbe9ba777faea8759a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh


PROGRAMS='
aerc
bemenu-run
brightnessctl
dunst
foot
gammastep
grim
htop
khard
lf
mpv
nvim
pactl
rifle
slurp
swappy
sway
swaylock
vdirsyncer
'


check_programs() {
	echo "$PROGRAMS" | while read -r program
	do
		if [ "$program" = '' ]
		then
			continue
		fi
		if ! command -v "$program" > /dev/null 2>&1
		then
			echo "Program is missing: '$program'"
		fi
	done
}