Proposal for an updated conkytoggle.sh script

Forum Forums antiX-development Development Proposal for an updated conkytoggle.sh script

  • This topic has 0 replies, 1 voice, and was last updated Oct 25-6:08 pm by PPC.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #121637
    Member
    PPC

      conkytoggle.sh is the script that toggles conky on and off, but it only does so for the current session. This means that, if you turned it off, if you log off and back on, conky, by default, will be displayed again.

      I performed a small change, to make this toggle permanent, until you toggle it again:

      #!/bin/bash
      # Filename:      conkytoggle.sh
      # Purpose:       toggle conky on/off from antiX's menu
      # Authors:       Kerry and anticapitalista, secipolla for antiX, adapted by PPC
      # Latest change: Wed March 24, 2010/ 24/10/2023
      ################################################################################
      if pidof conky | grep [0-9] > /dev/null
       then
       sleep 1
       sed -i s/^LOAD_CONKY=.*/LOAD_CONKY="false"/ ~/.desktop-session/desktop-session.conf
       sleep 1
        killall conky 
       else
       sleep 1
       sed -i s/^LOAD_CONKY=.*/LOAD_CONKY="true"/ ~/.desktop-session/desktop-session.conf
       sleep 1
        conky &
      fi
      exit
      • This topic was modified 1 month, 1 week ago by PPC.
      • This topic was modified 1 month, 1 week ago by PPC.
    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.