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

13 lines
197 B
Bash
Executable File

#!/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