summaryrefslogtreecommitdiffstats
path: root/oss-mute-proc.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-04-13 21:39:49 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-04-13 21:39:49 +0200
commitb7de185610d36aa373dadfb35ed131e648f6fde2 (patch)
tree1928fbbb4ec86ea4d3c4fffb5b1ae95a381758df /oss-mute-proc.sh
parentf9025ac53340a341b731dfed6821bde40b950e03 (diff)
downloadbin-b7de185610d36aa373dadfb35ed131e648f6fde2.tar.gz
bin-b7de185610d36aa373dadfb35ed131e648f6fde2.tar.xz
remove oss related scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'oss-mute-proc.sh')
-rwxr-xr-xoss-mute-proc.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/oss-mute-proc.sh b/oss-mute-proc.sh
deleted file mode 100755
index 3fbd347..0000000
--- a/oss-mute-proc.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-#----------------------------------------------------
-# Version: 0.1.1
-# Author: Florian "Bluewind" Pritz <flo@xssn.at>
-#
-# Licensed under WTFPL v2
-# (see COPYING for full license text)
-#
-#----------------------------------------------------
-# script to (un)mute processes using oss
-#----------------------------------------------------
-PROC="$1"
-VOLFILE="/tmp/${USER}_volume_${PROC}"
-
-VOLUME=$(cat "$VOLFILE" 2> /dev/null)
-if [ -z "$VOLUME" ]; then
- VOLUME=$(ossmix | grep "\"$PROC\"" | awk '{print $4}' | awk -F : '{print $1}')
- ossmix $PROC 0
- echo $VOLUME > "$VOLFILE"
-else
- ossmix $PROC $VOLUME
- rm "$VOLFILE"
-fi