Mini Info Center

Forum Forums General Tips and Tricks Mini Info Center

  • This topic has 2 replies, 2 voices, and was last updated Jan 30-5:29 pm by PPC.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #131285
    Member
    RJP

      A simple script for seeing computer infos.

      #!/bin/bash
      ##
      # RJP 30.1.2024
      #
      yad --form --columns=3 --width=500 --text="MINI INFO CENTER:" \
      --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="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
      
      #131288
      Member
      PPC

        Nice idea! So nice, in fact, that most of those options are already available in antiX’s “Information” GUI, available from Control Centre’s “Hardware” tab. That GUI was updated very recently…
        You added a few new useful options… and some other that left me just scratching my head…

        P.

        • This reply was modified 2 months, 3 weeks ago by PPC.
        • This reply was modified 2 months, 3 weeks ago by PPC.
        #131363
        Member
        PPC

          I took a closer look at your script, so here’s a more detailed analysis:

          – some tools are useful, but most of the useful ones already have GUI’s in the “information” tool available in Control Centre or elsewhere in Control Centre (like the “Speaker test” and “Alsa mixer”- please note that currently antiX uses the rxvt terminal to display Alsa mixer, making it a fully clickable application). Some tools also are not just “info”, but allow to change settings (like the mixer, install updates, toggle conky, etc)

          – the “pulse audio” entry does nothing for Alsa only systems (I have not tested it under Pipewire)

          – I personally see no use for the entries related to “non-user” files… but it may be just me.

          – In short, your GUI offers 33 options. antiX’s “Information” GUI offers just 19, but really includes only tools about system information, no tool to change any setting or “correct” anything- that is not really an “Information GUI” does.

          Your script certainly is a nice tool, and an ideal tool for you… but for the general antiX user? Maybe. It does aggregate a lot of different things, that may appeal to some people. But almost all the “Info” part of that script is already available in the “Information” GUI (that has a better looking GUI, with the choice of saving most results to a file that can be easily shared in the forum, if needed). Most “non info” related entries are available elsewhere, via antiX menu or Control Centre.
          I always create scripts for myself, and make them available to others. Sometimes my ideas “stick” and are used in antiX, most times, no. The important thing is that we create scripts because we want to, and that’s all that matters! Enjoy yourself and keep sharing your work!

          P

          • This reply was modified 2 months, 3 weeks ago by PPC.
        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.