Simple control center which uses different linux-commands.
mini-control-center-installation-and-files
#!/bin/bash
##
## RJP 30.1.2024
# 4.5.2024 Some functions more
#
DIGIT=$(cd / && stat -c '%a %A %U %G %n' /bin /usr/bin /boot /dev /etc /home /lib /usr/lib /lib64 /usr/lib64 /media /mnt /opt /root /sbin /usr/sbin /srv /sys /usr > /tmp/digit.txt)
yad --form --columns=3 --width=500 --title=$"MINI CONTROL CENTER" --text=$"MINI CONTROL CENTER:" \
--field="Puolanka weather":fbtn "xterm -e bash -c 'curl -s wttr.in/Puolanka-Finland | head -n +7 && echo -e "\n"; exec bash' & " \
--field="List partitions":fbtn "xterm -e bash -c 'lsblk; exec bash' & " \
--field="List files":fbtn "xterm -e bash -c 'cd $HOME && ls -lRa | less; exec bash' & " \
--field="List executables":fbtn "xterm -e bash -c 'cd $HOME && find . -type f -executable; exec bash' & " \
--field="List system folder permissions":fbtn "bash -c 'xdg-open /tmp/digit.txt; exec bash' & " \
--field="Find non-user-own files (nothing should be found if ok)":fbtn "xterm -e bash -c 'find $HOME ! -user $USER -type f; exec bash' & " \
--field="Correct user file owners if not ok":fbtn "xterm -e bash -c 'sudo chown -Rc $USER:$USER $HOME; exec bash' & " \
--field="Install updates":fbtn "xterm -e bash -c 'sudo apt update && sudo apt upgrade && yad --center --borders=5 --width=300 --text-align=center --button=gtk-ok:1 --title='READY' --buttons-layout=center; exec bash' &" \
--field="conky on/off":fbtn "bash -c 'if pidof conky | grep [0-9] > /dev/null
then
killall conky
else
conky
fi; exec bash' &" \
--field="List CD, DVD, USB and drives ":fbtn "xterm -e bash -c 'inxi -d; exec bash' & " \
--field="List PLAYBACK devices ":fbtn "xterm -e bash -c 'aplay -l; exec bash' & " \
--field="repo information":fbtn "xterm -e bash -c 'inxi -r; exec bash' &" \
--field="Network information":fbtn "xterm -e bash -c 'inxi -Nn; exec bash' &" \
--field="Graphics information":fbtn "xterm -e bash -c 'inxi -Gxx; exec bash' &" \
--field="VGA information":fbtn "xterm -e bash -c 'lspci -vnn | grep VGA; exec bash' &" \
--field="PCI information":fbtn "xterm -e bash -c 'lspci -vnn; exec bash' &" \
--field="Video Capture devices":fbtn "xterm -e bash -c 'ls /dev/video* ; exec bash' & " \
--field="Capture devices":fbtn "xterm -e bash -c 'arecord -L ; exec bash' & " \
--field="Audio Capture devices":fbtn "xterm -e bash -c 'arecord -l; exec bash' & " \
--field="Audio device list":fbtn "xterm -e bash -c 'cat /proc/asound/cards; exec bash' & " \
--field="/etc/asound.conf check":fbtn "xterm -e bash -c 'cat /etc/asound.conf | grep card; exec bash' & " \
--field="Pulseaudio sources":fbtn "xterm -e bash -c 'pactl list short sources; exec bash' & " \
--field="Speaker test":fbtn "xterm -e bash -c 'speaker-test --channels 2 --test wav --nloops 3 ; exec bash' & " \
--field="Alsamixer":fbtn "xterm -e bash -c 'alsamixer; exec bash' " \
--field="Kernel audio messages ":fbtn "xterm -e bash -c 'sudo dmesg | grep audio; exec bash' & " \
--field="Kernel video messages ":fbtn "xterm -e bash -c 'sudo dmesg | grep video; exec bash' & " \
--field="Inxi audio":fbtn "xterm -e bash -c 'inxi -Ax; exec bash' &" \
--field="Inxi video":fbtn "xterm -e bash -c 'inxi -Gx; exec bash' &" \
--field="xrandr info":fbtn "xterm -e bash -c 'xrandr; exec bash' &" \
--field="xrandr display info":fbtn "xterm -e bash -c 'xrandr --prop| grep connected; exec bash' &" \
--field="Backlight brigtness info":fbtn "xterm -e bash -c 'xrandr --prop --verbose | grep -A10 connected | grep Brightness; exec bash' & " \
--field="Video memory info":fbtn "xterm -e bash -c 'glxinfo | grep memory; exec bash' &" \
--field="VGA information":fbtn "xterm -e bash -c 'lspci -vnn | grep VGA; exec bash' &" \
--field="Groups INFO":fbtn "xterm -e bash -c 'groups; exec bash' &" \
--field="mimeapps.list":fbtn "bash -c 'pluma $HOME/.config/mimeapps.list; exec bash' &" \
--field="xdg-open test":fbtn "bash -c 'XDG_CURRENT_DESKTOP='X-Generic' xdg-open ~; exec bash' &" \
--button=Exit:1