make a bit of ear candy for workspace movement. Commented out original event in sound.py, we can remove it once this is well tested.
This commit is contained in:
25
scripts/announce_workspace.sh
Executable file
25
scripts/announce_workspace.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/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
|
||||
play -nqV0 synth pi fade 0 .25 .15 pad 0 1 reverb overdrive riaa norm -5 speed 1 remix v0.${left} v0.${right} &
|
||||
spd-say -P important -Cw "${msg}"
|
||||
Reference in New Issue
Block a user