2022-11-30 02:25:23 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
workSpace="$(i3-msg -t get_workspaces \
|
|
|
|
| jq '.[] | select(.focused==true).name' \
|
|
|
|
| cut -d"\"" -f2)"
|
|
|
|
left=9
|
|
|
|
right=0
|
|
|
|
msg="Workspace ${workSpace}"
|
|
|
|
if ! [[ "${workSpace}" =~ ^[0-9]+$ ]]; then
|
|
|
|
right=9
|
|
|
|
else
|
|
|
|
if [[ ${workSpace} -eq 10 ]]; then
|
|
|
|
left=0
|
|
|
|
right=9
|
|
|
|
elif [[ ${workSpace} -eq 5 ]]; then
|
|
|
|
right=9
|
|
|
|
elif [[ ${workSpace} -gt 5 ]]; then
|
|
|
|
right=9
|
|
|
|
((left-=${workSpace}))
|
|
|
|
else
|
|
|
|
((right+=${workSpace}))
|
|
|
|
fi
|
|
|
|
fi
|
2022-12-01 07:57:07 -05:00
|
|
|
play -nqV0 synth pi fade 0 .25 .15 pad 0 1 reverb overdrive riaa norm -8 speed 1 remix v0.${left} v0.${right} &
|
2022-11-30 02:25:23 -05:00
|
|
|
spd-say -P important -Cw "${msg}"
|