Skip to content

Instantly share code, notes, and snippets.

@discomplex

discomplex/conkytoggle

Last active Jun 15, 2020
Embed
What would you like to do?
CONKY TOGGLE INSTRUCTIONS [turn your conky on/off with a keyboard shortcut]
#CONKY TOGGLE INSTRUCTIONS [turn your conky on/off with a keyboard shortcut]
#Code borrowed from several forums... don't quite rememeber where I found it exactly ;)
#Better used with GNU/Linux CrunchBang <3 #! http://crunchbang.org/donate
---------------------------------------------------------------
#1) Paste the following uncommented line into a blank file:
if pgrep conky; then pkill conky; else conky; fi
#2)Name the file as something like:
conkytoggle.sh
#3)Make the file Executable:
chmod +x conkytoggle.sh
#4)Copy the file into your Home folder (~/ ...or any other folder, like ~/bin for example)
#5)Assign a Shortcut to this file on your *RC.xml file, ex:
<keybind key="W-c">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>toggle conky</name>
</startupnotify>
<command>~/conkytoggle.sh</command>
</action>
</keybind>
#6)It should work when you press W + c... but you never know!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.