Workspace switching sound should now work correctly in Sway.
This commit is contained in:
parent
61cdfffc0d
commit
dca451c996
@ -1,8 +1,17 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
path="$(readlink -f $0)"
|
||||||
|
path="${path%/*/*}"
|
||||||
|
path="${path##*/}"
|
||||||
|
if [[ "$path" == "i3" ]]; then
|
||||||
workSpace="$(i3-msg -t get_workspaces \
|
workSpace="$(i3-msg -t get_workspaces \
|
||||||
| jq '.[] | select(.focused==true).name' \
|
| jq '.[] | select(.focused==true).name' \
|
||||||
| cut -d"\"" -f2)"
|
| cut -d"\"" -f2)"
|
||||||
|
else
|
||||||
|
workSpace="$(swaymsg -t get_workspaces \
|
||||||
|
| jq '.[] | select(.focused==true).name' \
|
||||||
|
| cut -d"\"" -f2)"
|
||||||
|
fi
|
||||||
left=9
|
left=9
|
||||||
right=0
|
right=0
|
||||||
msg="Workspace ${workSpace}"
|
msg="Workspace ${workSpace}"
|
||||||
|
Loading…
Reference in New Issue
Block a user