+++ /dev/null
-#!/usr/bin/env sh
-
-while (true); do
- date=$(date "+%A %Y-%m-%d %I:%M:%S %p")
- charge=$(cat /sys/class/power_supply/BAT0/capacity)
- status=$(cat /sys/class/power_supply/BAT0/status)
- volume=$(amixer sget Master | awk -F"[][]" '/dB/ { print $2 ", " $6 }')
- xsetroot -name "[${charge}%, ${status}] [${volume}] [${date}]"
- sleep 1
-done
+++ /dev/null
-dwmsetroot(1)
-
-# NAME
-dwmsetroot - simple dwm status bar
-
-# SYNOPSIS
-*dwmsetroot*
-
-# DESCRIPTION
-Dead simple status bar for dwm. Shows battery level, volume, and time/date.
-
-# COPYRIGHT
-This is free and unencumbered software released into the public domain. For more
-information, please refer to <https://unlicense.org/>.
\ No newline at end of file
+++ /dev/null
-setter(1)
-
-# NAME
-setter - media hotkey backend
-
-# SYNOPSIS
-*setter*++
-*setter* status++
-*setter* audio++
-*setter* brightness
-
-# DESCRIPTION
-The various subcommands of setter are designed to be bound to various media
-keys.
-
-# SUBCOMMANDS
-*status*
- Show a notification with time/date, battery level, volume.
-
-*audio*
- Without an argument: toggles mute.
-
- Without an argument: increments volume by the specified percent.
-
-*brightness*
- Increments the backlight brightness by the specified percent.
-
-# COPYRIGHT
-This is free and unencumbered software released into the public domain. For more
-information, please refer to <https://unlicense.org/>.
\ No newline at end of file
+++ /dev/null
-#!/usr/bin/env sh
-# Sends a notification with the time, battery level, and volume
-
-pkill -SIGUSR1 herbe
-if [ "$1" = "status" ]; then
- herbe "$(date "+%A %Y-%m-%d, %r")" \
- "$(acpi | tail -c +12)" \
- "$(amixer sget Master | tail -n 1 | cut -d " " -f 7-)"
-elif [ "$1" = "audio" ]; then
- if [ "$2" ]; then
- amixer sget Master | tail -n 1 | grep "off" && \
- pactl set-sink-mute 0 toggle
- pactl set-sink-volume 0 "$2%"
- else
- pactl set-sink-mute 0 toggle
- fi
-
- herbe "Volume" "$(amixer sget Master | tail -n 1 | cut -d " " -f 7-)"
-elif [ "$1" = "brightness" ]; then
- brightnessctl set "$2"
- herbe "Brightness" "$(brightnessctl | grep % | tail -c +22)"
-else
- echo "setter: unknown subcommand"
- exit 1
-fi