New backup 2024-04-24 13:00:03

This commit is contained in:
Penelope Gwen 2024-04-24 13:00:03 -06:00
parent 990d22a315
commit b6925a1c94

View file

@ -1,12 +1,12 @@
#!/bin/bash
current_ws=$(swaymsg -t get_workspaces | jq '.[] | select(.focused==true)|.name')
#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=$(printf "%02d\n" $( echo "${current_ws}" | sed 's/:.*//' | tr -d '"'))
current_ws=${current_ws:0:1}
#current_ws=${current_ws:0:1}
options=$( ls "$HOME/.config/sway/scripts/shortcuts/${current_ws}" )
options=$( ls "$HOME/.config/sway/scripts/global_shortcuts/" )
op=$( echo -e "${options}" | wofi -i --dmenu | awk '{print}' )