blob: 1a719a355ed36148f8e1d649abb25dfe5e468762 (
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
40
41
42
43
|
#!/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" | sort | while read -r program
do
if [ "$program" = '' ]
then
continue
fi
local state=''
if command -v "$program" > /dev/null 2>&1
then
state='x'
else
state=' '
fi
echo "[${state}] $program"
done
}
|