aboutsummaryrefslogtreecommitdiff
path: root/xconky
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-06-06 17:35:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-06-06 17:35:11 -0300
commit801d08246e58aee31504ffc36cfea40626df5d47 (patch)
tree7a385ecde49225d00758e76982f56fc905a2a3b8 /xconky
parent63b2d9bcfd8a38802f9f4ad7d7f82f58e83889f4 (diff)
downloadutils-x11-801d08246e58aee31504ffc36cfea40626df5d47.tar.gz
utils-x11-801d08246e58aee31504ffc36cfea40626df5d47.tar.bz2
Adds xconky kill and restart
Diffstat (limited to 'xconky')
-rwxr-xr-xxconky17
1 files changed, 16 insertions, 1 deletions
diff --git a/xconky b/xconky
index dcd4aa7..86b7d60 100755
--- 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