From: Armaan Bhojwani Date: Mon, 21 Jun 2021 15:01:31 +0000 (-0400) Subject: setter, dwmsetroot: drop scripts X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=8bc0b259326210517787f66c956bb07e80ffe0d3 setter, dwmsetroot: drop scripts --- diff --git a/dwmsetroot b/dwmsetroot deleted file mode 100755 index f27749e..0000000 --- a/dwmsetroot +++ /dev/null @@ -1,10 +0,0 @@ -#!/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 diff --git a/man/dwmsetroot.1.scd b/man/dwmsetroot.1.scd deleted file mode 100644 index adf40d2..0000000 --- a/man/dwmsetroot.1.scd +++ /dev/null @@ -1,14 +0,0 @@ -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 . \ No newline at end of file diff --git a/man/setter.1.scd b/man/setter.1.scd deleted file mode 100644 index fe6e2db..0000000 --- a/man/setter.1.scd +++ /dev/null @@ -1,30 +0,0 @@ -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 . \ No newline at end of file diff --git a/setter b/setter deleted file mode 100755 index 6d6be9c..0000000 --- a/setter +++ /dev/null @@ -1,25 +0,0 @@ -#!/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