New backup 2024-04-09 19:45:03

This commit is contained in:
Penelope Gwen 2024-04-09 19:45:03 -06:00
parent 547bd77b62
commit b7c1df3ac1
2 changed files with 9 additions and 3 deletions

View file

@ -3,11 +3,12 @@
# Workspaces 1-10
#
set $pn "1"
bindsym $mod+Shift+r exec $HOME/.config/sway/scripts/ws-rename
#set $pn "1"
# Switch to
bindsym $mod+1 workspace number $pn
# bindsym $mod+1 workspace number 1
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4

View file

@ -0,0 +1,5 @@
#!/bin/bash
active_ws=$(swaymsg -t get_workspaces | jq '.[] | select(.focused==true) | .name')
swaymsg rename "${active_ws}" to "${new_name}"