diff --git a/bin/bin/bspwm_dynamic_desktops b/bin/bin/bspwm_dynamic_desktops index b6c441ec..d2f246f9 100755 --- a/bin/bin/bspwm_dynamic_desktops +++ b/bin/bin/bspwm_dynamic_desktops @@ -132,9 +132,15 @@ case "$option" in --ns|--send-focused-to-desktop) _desk_or_node node focused -d "${target_desktop}" ;; + --nsf|--send-focused-to-desktop-and-follow) + _desk_or_node node focused -d "${target_desktop}" --follow + ;; --nm|--send-focused-to-next-monitor) _desk_or_node monitor node focused -d "${target_desktop}" ;; + --nmf|--send-focused-to-next-monitor-and-follow) + _desk_or_node monitor node focused -d "${target_desktop}" --follow + ;; --da|--activate-desktop-and-place-receptacle) _desk_or_node monitor node @"$target_desktop":/ -i && bspc desktop -a "${target_desktop}" ;; diff --git a/bspwm/.config/sxhkd/sxhkdrc_bspc b/bspwm/.config/sxhkd/sxhkdrc_bspc index 3a176169..acf445a4 100644 --- a/bspwm/.config/sxhkd/sxhkdrc_bspc +++ b/bspwm/.config/sxhkd/sxhkdrc_bspc @@ -98,9 +98,20 @@ mod3 + shift + {h,j,k,l} # section. # # NOTE the leading `;` runs this command asynchronously. +# +# NOTE2 the script also offers commands for sending to a desktop on the +# current or the next monitor and following it right away. The +# shorthand for those is `--nsf' and `--nmf' respectively. A +# commented-out version is provided below the enabled key bindings, +# which replaces the "send" commands noted above with their +# "send+follow" equivalents. mod3 + {_,shift + ,ctrl + shift +,ctrl +}{0-9} ;bspwm_dynamic_desktops {--df,--ns,--nm,--da} {0-9} +## Use this for "send+follow" instead of just "send" +# mod3 + {_,shift + ,ctrl + shift +,ctrl +}{0-9} +# ;bspwm_dynamic_desktops {--df,--nsf,--nmf,--da} {0-9} + # With `alt` focus {next,previous} window in the current desktop. With # `mod3` focus {next,previous} desktop in the current monitor. # Cyclical behaviour. Move in the opposite direction while also holding