updating EVERYTHING for arch again
This commit is contained in:
parent
270b92d0c2
commit
d0ef589a39
20 changed files with 120 additions and 74 deletions
21
scripts/mem-plasma-diy.sh
Executable file
21
scripts/mem-plasma-diy.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
ID=$1
|
||||
|
||||
while true
|
||||
do
|
||||
COMMAND="systemmonitor"
|
||||
# font='VictorMono Nerd Font' color=#ff9f43 size=11
|
||||
|
||||
read used total <<< $(free -m | awk '/Mem/{printf $2" "$3}')
|
||||
|
||||
percent=$(bc -l <<< "100 * $total / $used")
|
||||
|
||||
mem=$(awk -v u=$used -v t=$total -v p=$percent 'BEGIN {printf "%sMi/%sMi %.1f% ", t, u, p}'| awk '{printf $2}')
|
||||
|
||||
DATA="| A | $mem | |$COMMAND |"
|
||||
qdbus org.kde.plasma.doityourselfbar /id_$ID \
|
||||
org.kde.plasma.doityourselfbar.pass "$DATA"
|
||||
|
||||
sleep 2s
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue