-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck.sh
More file actions
executable file
·32 lines (27 loc) · 1.06 KB
/
Copy pathcheck.sh
File metadata and controls
executable file
·32 lines (27 loc) · 1.06 KB
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
#!/usr/bin/env bash
set -u
printf 'LoboViejo79 Rofi - diagnóstico\n'
printf '==========================\n\n'
printf 'Sistema: '
if [[ -r /etc/os-release ]]; then
. /etc/os-release
printf '%s\n' "${PRETTY_NAME:-desconocido}"
else
printf 'desconocido\n'
fi
printf 'Sesión: %s\n' "${XDG_SESSION_TYPE:-desconocida}"
printf 'Escritorio: %s\n' "${XDG_CURRENT_DESKTOP:-desconocido}"
printf 'Rofi: '
if command -v rofi >/dev/null 2>&1; then
rofi -v 2>/dev/null || true
else
printf 'NO instalado\n'
fi
printf 'Tema: '
[[ -f "$HOME/.config/rofi/themes/loboviejo79-walker.rasi" ]] && printf 'OK\n' || printf 'FALTA\n'
printf 'Launcher: '
[[ -x "$HOME/.config/rofi/scripts/loboviejo79-launcher.sh" ]] && printf 'OK\n' || printf 'FALTA / sin permiso de ejecución\n'
printf 'Fuente: '
fc-match 'JetBrainsMono Nerd Font' 2>/dev/null | head -n1 || printf 'No detectada\n'
count=$(find "$HOME/.config/rofi/walker-images" -maxdepth 1 -type f \( -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.webp' \) 2>/dev/null | wc -l)
printf 'Imágenes: %s\n' "$count"