Added scripts for battery and RAM usage to be used with dwmblocks

This commit is contained in:
_N0x 2021-01-20 14:09:19 +01:00
parent 2ee153db3c
commit 93347ad269
3 changed files with 13 additions and 0 deletions

5
localbin/.local/bin/batstatus Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# get battery percentage and current time remaining
acpi | awk -F '[, :]' '{print $6 " ~" $8":"$9}'

5
localbin/.local/bin/freememory Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# simple script to show systemmemory in dwmblocks
free -h | awk '/^Mem/ { print $3"/"$2 }' | sed s/i//g

View File

@ -19,6 +19,9 @@ export ZSH="/home/n0x/.oh-my-zsh"
export LC_ALL=en_US.UTF-8 export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
export PATH=$PATH:~/.local/bin
ZSH_THEME="powerlevel10k/powerlevel10k" ZSH_THEME="powerlevel10k/powerlevel10k"
HIST_STAMPS="yyyy-mm-dd" HIST_STAMPS="yyyy-mm-dd"