mirror of https://github.com/Horhik/dotfiles.git
13 lines
197 B
Plaintext
13 lines
197 B
Plaintext
|
#!/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
|
||
|
|