Update Polybar
This commit is contained in:
9
files/.config/polybar/scripts/cpu.sh
Executable file
9
files/.config/polybar/scripts/cpu.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
--popup)
|
||||
notify-send "CPU time (%)" "$(ps axch -o cmd:10,pcpu k -pcpu | head | awk '$0=$0"%"' )"
|
||||
;;
|
||||
*)
|
||||
echo "$(grep 'cpu ' /proc/stat | awk '{cpu_usage=($2+$4)*100/($2+$4+$5)} END {printf "%0.2f%", cpu_usage}')"
|
||||
;;
|
||||
esac
|
||||
9
files/.config/polybar/scripts/memory.sh
Executable file
9
files/.config/polybar/scripts/memory.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
--popup)
|
||||
notify-send "Memory (%)" "$(ps axch -o cmd:10,pmem k -pmem | head | awk '$0=$0"%"' )"
|
||||
;;
|
||||
*)
|
||||
echo "$(free -h --si | awk '/^Mem:/ {print $3 "/" $2}')"
|
||||
;;
|
||||
esac
|
||||
3
files/.config/polybar/scripts/temp.sh
Executable file
3
files/.config/polybar/scripts/temp.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "$(sensors | grep Tctl | head -1 | awk '{print $2}')"
|
||||
Reference in New Issue
Block a user