]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Adds xconky kill and restart
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 6 Jun 2017 20:35:11 +0000 (17:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 6 Jun 2017 20:35:11 +0000 (17:35 -0300)
xconky

diff --git a/xconky b/xconky
index dcd4aa791d82ba69b6b5ad1e65abd87d3bf95350..86b7d60a904529c4f8e1eaa9f15730f6b2cbf8fc 100755 (executable)
--- a/xconky
+++ b/xconky
@@ -39,12 +39,23 @@ function xconky_fs_home {
 # Refresh all instances
 function xconky_refresh {
   # Clear cache
-  brweather --clean-cache
+  #brweather --clean-cache
 
   # Send HUP
   killall -USR1 conky
 }
 
+# Kill all instances
+function xconky_kill {
+  kill -9 `pidof conky`
+}
+
+# Restart all instances
+function xconky_restart {
+  xconky_kill
+  xconky_start
+}
+
 # Check
 if ! which conky &> /dev/null; then
   exit
@@ -59,4 +70,8 @@ elif [ "$1" = "fs_home" ]; then
   xconky_fs_home
 elif [ "$1" = "refresh" ]; then
   xconky_refresh
+elif [ "$1" = "kill" ]; then
+  xconky_kill
+elif [ "$1" = "restart" ]; then
+  xconky_restart
 fi