1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

giving some props to the creators

This commit is contained in:
TiynGER
2020-04-02 00:06:34 +02:00
parent 05840fcb8f
commit 793e3653bd
33 changed files with 56 additions and 121 deletions

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# Give a battery name (e.g. BAT0) as an argument.
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
capacity=$(cat /sys/class/power_supply/"$1"/capacity) || exit
time=$(acpi | awk '{ print $5 }')

View File

@@ -1,3 +1,5 @@
#!/bin/sh
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
date +"%d %b %H:%M"

View File

@@ -1,3 +1,5 @@
#!/bin/sh
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
sensors | awk '/Core 0/ {print $3}'

View File

@@ -3,6 +3,7 @@
# Status bar module for disk space
# $1 should be drive mountpoint
# $2 is optional icon, otherwise mountpoint will displayed
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ -z "$1" ] && exit

View File

@@ -1,4 +1,7 @@
#!/bin/sh
# inspired by by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
status() { \
echo "$(memory)|$(cpu)|$(disk /)|$(volume)|$(battery BAT0)|$(internet)|$(clock)"
}

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡"
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }')

View File

@@ -1,3 +1,5 @@
#!/bin/sh
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
free -h | awk '/^Mem:/ {print $3 "/" $2}'

View File

@@ -1,5 +1,6 @@
#!/bin/sh
# Refresh the dwmbar.
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
kill "$(pstree -lp | grep -- -dwmbar\([0-9] | sed "s/.*sleep(\([0-9]\+\)).*/\1/")"

View File

@@ -1,5 +1,7 @@
#!/bin/sh
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ "$(pulsemixer --get-mute)" = "1" ] && printf "🔇\\n" && exit
vol=$(pulsemixer --get-volume | awk '{print $1}')