A One Line Bash Script To Toggle Programs On/Off
DistroTube
In this video, I want to share with you the 'pgrep' command which is really useful for finding out if a particular program is running or not. It was very useful for me creating a one-line bash script to toggle conky on/off.
My conky-toggle script: βΊ https://gitlab.com/dtos/etc/dtos-local-bin/-/blob/main/etc/dtos/.local/bin/conky-toggle?ref_type=heads
WANT TO SUPPORT THE CHANNEL? π° Patreon: https://www.patreon.com/distrotube π³ Paypal: https://www.youtube.com/redirect?event=channel_banner&redir_token=QUFFLUhqazNocEhiaGFBT1l1MnRHbnlIcHFKbXJWVnpQd3xBQ3Jtc0tsLVZJc19YeFlwZ2JqbXVOa3g0Skw4TVhTV2otNm1tM3A1bUNnamh3S2V6OGQtLTBnSjBxYTlvUXMxeEVIS3o4US10NENHMUQ3STk2a01FOFBhUnZjZFctMEhFUTg1TVctQmFfVUdxZXJ4TDl0azlYNA&q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_donations%26business%3Dderek%2540distrotube%252ecom%26lc%3DUS%26item_name%3DDistroTube%26no_note%3D0%26currency_code%3DUSD%26bn%3DPP%252dDonationsBF%253abtn_donateCC_LG%252egif%253aNonHostedGuest ποΈ Amazon: https://amzn.to/2RotFFi π Teespring: https://teespring.com/stores/distrotube
DT ON THE WEB:
πΈοΈ Website: http://distro.tube
π GitLab: https://gitlab.com/dwt1
π¨οΈ Mastodon: https://fosstodon.org/@distrotube
π« Reddit: https://www.reddit.com/r/DistroTube/
π½οΈ Odysee: https://odysee.com/@DistroTube:2
FREE AND OPEN SOURCE SOFTWARE THAT I LIKE: π Brave Browser - https://brave.com/ π½οΈ Open Broadcaster Software: https://obsproject.com/ π¬ Kdenlive: https://kdenlive.org π¨ GIMP: https://www.gimp.org/ π» VirtualBox: https://www.virtualbox.org/ ποΈ Doom Emacs: https://github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys! ... https://www.youtube.com/watch?v=eBzDiBAcIFo
92030980 Bytes