mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
Lots of updates.
This commit is contained in:
4
.local/bin/clock
Executable file
4
.local/bin/clock
Executable file
@@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
dte="$(date +"%a, %B %d %l:%M%p"| sed 's/ / /g')"
|
||||
echo -e "$dte"
|
||||
4
.local/bin/kernel
Executable file
4
.local/bin/kernel
Executable file
@@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
kern="$(uname -r)"
|
||||
echo -e "$kern "
|
||||
4
.local/bin/memory
Executable file
4
.local/bin/memory
Executable file
@@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
mem="$(free -h | awk '/^Mem:/ {print $3 "/" $2}')"
|
||||
echo -e "$mem ram "
|
||||
4
.local/bin/pacupdate
Executable file
4
.local/bin/pacupdate
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cupd=$(checkupdates | wc -l)
|
||||
printf "$cupd udpates \n"
|
||||
4
.local/bin/upt
Executable file
4
.local/bin/upt
Executable file
@@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
upt="$(uptime --pretty | sed -e 's/up //g' -e 's/ hours/h/g' -e 's/ hour/h/g' -e 's/ minutes/m/g' -e 's/, //g')"
|
||||
echo -e "$upt uptime "
|
||||
4
.local/bin/volume
Executable file
4
.local/bin/volume
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
|
||||
echo "${vol}% "
|
||||
Reference in New Issue
Block a user