Dotfiles/home/bspwm/.config/bspwm/scratchpad

13 lines
197 B
Plaintext
Raw Normal View History

2021-08-25 13:36:27 +00:00
#!/usr/bin/env bash
class=$2
typ3=$1 #"class" # or name
id=$(xdotool search --$typ3 $class)
if [ "$id" != "" ]
then
bspc node "$id" --flag hidden --to-desktop focused -f --state floating
fi