aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-xScripts/.local/scripts/emacs_curl4
-rwxr-xr-xScripts/.local/scripts/status/memory4
2 files changed, 2 insertions, 6 deletions
diff --git a/Scripts/.local/scripts/emacs_curl b/Scripts/.local/scripts/emacs_curl
deleted file mode 100755
index f92835e..0000000
--- a/Scripts/.local/scripts/emacs_curl
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-x=`xclip -o`
-emacsclient --socket-name=MAIN -c --alternate-editor=emacs --eval "(eww \"$x\")";
diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory
index 57491e5..e53921a 100755
--- a/Scripts/.local/scripts/status/memory
+++ b/Scripts/.local/scripts/status/memory
@@ -6,9 +6,9 @@ available=$(echo $line | awk '{print $2}');
value=$(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1)
emacs=$(systemctl --user status emacs | grep "Memory: " | sed "s/[ ]*//;s/Memory: //")
-if [[ $emacs = "" ]];
+if [[ $emacs -eq "" ]];
then
emacs="N/A"
fi
-echo " $(printf "%dMB" $used) $value% ->  $emacs"
+echo " $(printf "%dMB" $used) $value% ->  $emacs"