mirror of
https://codeberg.org/frosty/dotfiles.git
synced 2024-09-19 11:47:09 -04:00
update scripts
This commit is contained in:
parent
01db0f54fa
commit
cdcf46f206
|
@ -111,6 +111,20 @@ monitor_volume() {
|
|||
printf '%s%%\n' "$volume"
|
||||
}
|
||||
|
||||
monitor_uptime() {
|
||||
up=$(uptime -p)
|
||||
up=${up#up }
|
||||
up=${up//,}
|
||||
up=${up// day/d}
|
||||
up=${up// days/d}
|
||||
up=${up// minutes/m}
|
||||
up=${up// minute/m}
|
||||
up=${up// hours/h}
|
||||
up=${up// hour/h}
|
||||
|
||||
printf '%s\n' "$up"
|
||||
}
|
||||
|
||||
if command -v monitor_"$1" >/dev/null 2>&1; then
|
||||
monitor_"$1"
|
||||
fi
|
||||
|
|
3
.local/bin/toggle
Executable file
3
.local/bin/toggle
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
killall "$1" || "$@"
|
Loading…
Reference in a new issue