New backup 2024-04-15 11:15:04
This commit is contained in:
parent
1428802a6e
commit
ec5fd30fc3
3 changed files with 11 additions and 3 deletions
|
@ -8,3 +8,6 @@
|
|||
|
||||
# Cycle Scratchpad
|
||||
bindsym $mod+minus scratchpad show
|
||||
|
||||
# sticky
|
||||
bindsym $mod+Shift+equal floating enable, sticky enable
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
for_window [class="discord$"] move scratchpad, floating enable, scratchpad hide
|
||||
|
||||
# Thunderbird assigned to workspace 9
|
||||
assign [title="Mozilla Thunderbird$"] workspace number 9
|
||||
assign [title="Mozilla Thunderbird$"] workspace "9:"
|
||||
|
||||
# Sonixd assigned to workspace 10
|
||||
assign [title="^Sonixd$"] workspace number 10
|
||||
assign [title="^Sonixd$"] workspace "10:"
|
||||
|
||||
#
|
||||
# ScratchPad - Dropdown Windows
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
active_wsname=$(swaymsg -t get_workspaces | jq '.[] | select(.focused==true) | .name')
|
||||
ws_prefix=$(echo $active_wsname | tr -d '"' | grep -o "[1-9]*:[^a-zA-Z1-9]")
|
||||
echo $active_wsname
|
||||
ws_prefix=$(echo $active_wsname | tr -d '"' | grep -o "[0-9]*:[^a-zA-Z1-9]")
|
||||
wsname=$(echo "${active_wsname}" | sed 's/'"${ws_prefix}"'//'| tr -d '"')
|
||||
|
||||
echo $ws_prefix
|
||||
echo $wsname
|
||||
|
||||
|
||||
exit
|
||||
|
||||
new_wsname="${ws_prefix}$(wofi -i --dmenu --height 1 --search ${wsname})"
|
||||
|
||||
swaymsg 'rename workspace "'"${active_wsname}"'" to "'"${new_wsname}"'"'
|
||||
|
|
Loading…
Add table
Reference in a new issue