mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-12-22 21:22:52 +00:00
commit
15ad2d6a91
2 changed files with 28 additions and 0 deletions
14
modules/os-release
Normal file
14
modules/os-release
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Prints out your OS name
|
||||
|
||||
PREFIX=' '
|
||||
|
||||
get_os_name()
|
||||
{
|
||||
OS=$(cat /etc/os-release | head -n 1 | sed 's/NAME=//g')
|
||||
|
||||
echo "$PREFIX$OS"
|
||||
}
|
||||
|
||||
get_os_name
|
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