From 37ea7a555269a92d524bf78d492e4ebc64a133d0 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 31 May 2020 15:18:41 -0400 Subject: old scripts cleanup --- .local/bin/lmc | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 .local/bin/lmc (limited to '.local/bin/lmc') diff --git a/.local/bin/lmc b/.local/bin/lmc deleted file mode 100755 index d431495..0000000 --- a/.local/bin/lmc +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -NUM="${2:-5}" - -# Uncomment the following line to use Pulseaudio. -# PULSE=true - -if [ "$PULSE" ]; then - toggle() { pulsemixer --toggle-mute ;} - mute() { pulsemixer --mute ;} - up() { pulsemixer --change-volume +"$NUM" ;} - down() { pulsemixer --change-volume -"$NUM" ;} - control() { pulsemixer ;} -else - toggle() { amixer sset Master toggle ;} - mute() { amixer sset Master mute ;} - up() { amixer sset Master "$NUM"%+ ;} - down() { amixer sset Master "$NUM"%- ;} - control() { alsamixer ;} -fi - -case "$1" in - toggle) toggle ;; - mute) mute ;; - up) up ;; - down) down ;; - control) control ;; -esac -- cgit v1.3.1