From c618cf604f53fc4055680015bf249425fb8b9980 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 30 Apr 2018 13:32:11 +0100 Subject: [PATCH] Remove ProFTP script --- i3/blocks/proftp | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 i3/blocks/proftp diff --git a/i3/blocks/proftp b/i3/blocks/proftp deleted file mode 100755 index 75489d93..00000000 --- a/i3/blocks/proftp +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/sh - -LAMPP='/opt/lampp/lampp' -STATUS=$($LAMPP status 2> /dev/null) - -PROFTP=$(echo "$STATUS" | grep -i proftp | grep -io not > /dev/null && echo "down" || echo "up") - -function toggleProftp(){ - if [ $PROFTP = "up" ]; then - gksudo $LAMPP stopftp - else - gksudo $LAMPP startftp - fi -} - -function toggleAll(){ - if [ $PROFTP = "up" ]; then - gksudo $LAMPP stop - else - gksudo $LAMPP start - fi -} - -case $BLOCK_BUTTON in - 1) toggleProftp ;; - 3) toggleAll ;; -esac - -if [ "$PROFTP" = "up" ]; then - COLOUR="#00FF00" -else - COLOUR="#FF0000" -fi - -echo "ProFTP" -echo "" -echo "$COLOUR"