You are not logged in.
Notice my little script does NOT use "pkill -9".
If running shut it down
If not running, start it up
The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!
Offline
...
I also have a SSC.sh file to Start|Stop Conky, various ones, that might help you, adapt it for your need:#!/bin/bash ## Original idea by: GrouchyGaijin ## This idea by: Stinkeye - Jan 2013 ## With another tweak by: arclance ## Final tweak by: Sector11 ## click to start, click to stop if pgrep -f "conky -q -c /media/5/Conky/easysid/MechClock/conkyrc_clock" then pkill -xf "conky -q -c /media/5/Conky/easysid/MechClock/conkyrc_clock" else conky -q -c "/media/5/Conky/easysid/MechClock/conkyrc_clock" fi
It checks to see if the conky is running:
if yes - it kills it
if no - it starts itWorth a try.
Remember the part inside the " " are the exact command to run the program.
Looks like the "pgrep" bit can be left out:
#!/bin/bash
pkill -xf "conky -c /path/to/conky" || conky -c "/path/to/conky"
Using the Openbox (3.5.2) session of Lubuntu 14.04 LTS but very interested in BL :)
Offline
sleekmason wrote:What does the -9 do?
Ha! This is good:)
Offline
How do you manage the need to run as root or with sudo, when in conky?
// Regards rbh
Online
How do you manage the need to run as root or with sudo, when in conky?
It comes down to being able to execute commands with superuser privileges without the need of entering a password (interactively).
Several approaches exist: with PAM I guess, or with adding certain commands to your sudoers config files under /etc.
For the latter, see: https://wiki.archlinux.org/index.php/Su … le_entries
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos
Offline