mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-12-23 05:22:53 +00:00
Added PROCESS COUNT module
This commit is contained in:
parent
e5b929d981
commit
c5d1205e0c
1 changed files with 14 additions and 0 deletions
14
modules/process_count
Normal file
14
modules/process_count
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Prints out your process count
|
||||||
|
|
||||||
|
PREFIX=' '
|
||||||
|
|
||||||
|
get_proc_count()
|
||||||
|
{
|
||||||
|
PROC_COUNT=$(ps -Al | wc -l)
|
||||||
|
|
||||||
|
echo "$PREFIX$PROC_COUNT"
|
||||||
|
}
|
||||||
|
|
||||||
|
get_proc_count
|
Loading…
Reference in a new issue