312 current 2025-02-09 03:05:47 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
12
home/scripts/bspwm/swap-desktop.sh
Normal file
12
home/scripts/bspwm/swap-desktop.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# swaps the current desktop with selected
|
||||
shift="$1"
|
||||
current=$(bspc query -D -d --names)
|
||||
|
||||
# if same, exit
|
||||
[[ $shift == $current ]] && exit 1
|
||||
|
||||
bspc desktop $shift -n t
|
||||
bspc desktop $current -s t
|
||||
bspc desktop $current -n $shift
|
||||
bspc desktop t -n $current
|
||||
Reference in New Issue
Block a user