New backup 2024-04-24 13:00:03
This commit is contained in:
parent
990d22a315
commit
b6925a1c94
1 changed files with 4 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/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}' )
|
op=$( echo -e "${options}" | wofi -i --dmenu | awk '{print}' )
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue