11 lines
359 B
Bash
Executable file
11 lines
359 B
Bash
Executable file
#!/bin/bash
|
|
|
|
profiles=( "Personal" "Development" "School" "Work")
|
|
|
|
current_ws=$(swaymsg -t get_workspaces | jq '.[] | select(.focused==true)|.name')
|
|
current_ws=$(printf "%02d\n" $( echo "${current_ws}" | sed 's/:.*//' | tr -d '"'))
|
|
current_ws=${current_ws:0:1}
|
|
|
|
current_wsprofile="${profiles[${current_ws}]}"
|
|
|
|
gtk-launch "Floorp-${current_wsprofile}.desktop"
|