Useful scripts in one unit. Pacakage yad must be installed with mini-info-center and packages yad and xterm must be installed with mini-info-center-pc
Edit 30.1.2024: new versions:
#!/bin/bash
##
# RJP 30.1.2024
# 31.1.2024 added update history
yad --form --columns=3 --width=500 --text="MINI INFO CENTER:" \
--field="Puolanka weather":fbtn "x-terminal-emulator -e bash -c 'curl -s wttr.in/Puolanka-Finland | head -n +7 && echo -e "\n"; exec bash' & " \
--field="List partitions":fbtn "x-terminal-emulator -e bash -c 'lsblk; exec bash' & " \
--field="List files":fbtn "x-terminal-emulator -e bash -c 'cd $HOME && ls -lRa | less; exec bash' & " \
--field="Find non-user-own files (nothing should be found if ok)":fbtn "x-terminal-emulator -e bash -c 'find $HOME ! -user $USER -type f; exec bash' & " \
--field="Correct user file owners if not ok":fbtn "x-terminal-emulator -e bash -c 'sudo chown -Rc $USER:$USER $HOME; exec bash' & " \
--field="Install updates":fbtn "x-terminal-emulator -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="Update history":fbtn "x-terminal-emulator -e bash -c 'grep "upgrade" /var/log/dpkg.log; exec bash' & " \
--field="Install history":fbtn "x-terminal-emulator -e bash -c 'grep "install" /var/log/dpkg.log; 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 "x-terminal-emulator -e bash -c 'inxi -d; exec bash' & " \
--field="List PLAYBACK devices ":fbtn "x-terminal-emulator -e bash -c 'aplay -l; exec bash' & " \
--field="repo information":fbtn "x-terminal-emulator -e bash -c 'inxi -r; exec bash' &" \
--field="Video memory info":fbtn "x-terminal-emulator -e bash -c 'glxinfo | grep memory; exec bash' &" \
--field="Network information":fbtn "x-terminal-emulator -e bash -c 'inxi -Nn; exec bash' &" \
--field="Graphics information":fbtn "x-terminal-emulator -e bash -c 'inxi -Gxx; exec bash' &" \
--field="VGA information":fbtn "x-terminal-emulator -e bash -c 'lspci -vnn | grep VGA; exec bash' &" \
--field="PCI information":fbtn "x-terminal-emulator -e bash -c 'lspci -vnn; exec bash' &" \
--field="Video Capture devices":fbtn "x-terminal-emulator -e bash -c 'ls /dev/video* ; exec bash' & " \
--field="Capture devices":fbtn "x-terminal-emulator -e bash -c 'arecord -L ; exec bash' & " \
--field="Audio Capture devices":fbtn "x-terminal-emulator -e bash -c 'arecord -l; exec bash' & " \
--field="Audio device list":fbtn "x-terminal-emulator -e bash -c 'cat /proc/asound/cards; exec bash' & " \
--field="/etc/asound.conf check":fbtn "x-terminal-emulator -e bash -c 'cat /etc/asound.conf | grep card; exec bash' & " \
--field="Pulseaudio sources":fbtn "x-terminal-emulator -e bash -c 'pactl list short sources; exec bash' & " \
--field="Speaker test":fbtn "x-terminal-emulator -e bash -c 'speaker-test --channels 2 --test wav --nloops 3 ; exec bash' & " \
--field="Alsamixer":fbtn "x-terminal-emulator -e bash -c 'alsamixer; exec bash' " \
--field="Kernel audio messages ":fbtn "x-terminal-emulator -e bash -c 'sudo dmesg | grep audio; exec bash' & " \
--field="Kernel video messages ":fbtn "x-terminal-emulator -e bash -c 'sudo dmesg | grep video; exec bash' & " \
--field="Inxi audio":fbtn "x-terminal-emulator -e bash -c 'inxi -Ax; exec bash' &" \
--field="Inxi video":fbtn "x-terminal-emulator -e bash -c 'inxi -Gx; exec bash' &" \
--field="xrandr info":fbtn "x-terminal-emulator -e bash -c 'xrandr; exec bash' &" \
--field="xrandr display info":fbtn "x-terminal-emulator -e bash -c 'xrandr --prop| grep connected; exec bash' &" \
--field="Backlight brigtness info":fbtn "x-terminal-emulator -e bash -c 'xrandr --prop --verbose | grep -A10 connected | grep Brightness; exec bash' & " \
--field="Video memory info":fbtn "x-terminal-emulator -e bash -c 'glxinfo | grep memory; exec bash' &" \
--field="VGA information":fbtn "x-terminal-emulator -e bash -c 'lspci -vnn | grep VGA; exec bash' &" \
--field="PCI information":fbtn "x-terminal-emulator -e bash -c 'lspci -vnn; exec bash' &" \
--field="Groups INFO":fbtn "x-terminal-emulator -e bash -c 'groups; exec bash' &" \
--button=gtk-cancel:1