summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/bell
blob: c8bebd5e9dfdf75a2d255b9520f327fa81037c75 (plain)
1
2
3
4
5
6
7
#!/bin/sh

bef="$(amixer get Master | awk -F '[][]' 'END{print $2}')"
amixer set Master 20%
# code steal from https://unix.stackexchange.com/a/163716/459013
speaker-test -t sine -f 1000 -l 1
amixer set Master "$bef"
"Asia/Shanghai";; f) tz_from="$(tzselect)";; F) tz_from="$OPTARG";; # one extra ',' at the end will not let `for tz in ...` loop one extra time? t) for i in $(seq "$OPTARG"); do tz_to="$(tzselect),$tz_to" done;; T) tz_to="$OPTARG,$tz_to";; \?) exit 1;; esac done shift $((OPTIND-1))