#!/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} echo ${current_ws} exit if [[ -z "${current_ws}" ]];then current_ws="Penelope";fi gtk-launch "Floorp-${current_ws}.desktop" #MOZ_ENABLE_WAYLAND=1 flatpak run one.ablaze.floorp -P "$current_ws" #options=$( ls "$HOME/.config/sway/scripts/shortcuts/${current_ws}" ) #op=$( echo -e "${options}" | wofi -i --dmenu | awk '{print}' ) #"$HOME/.config/sway/scripts/shortcuts/${current_ws}"/"${op}"