(Scripts)~small changes to memory status, -emacs_curl
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
x=`xclip -o`
|
||||
emacsclient --socket-name=MAIN -c --alternate-editor=emacs --eval "(eww \"$x\")";
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user