|
|
@ -90,18 +90,23 @@ get_class_name() {
|
|
|
|
float_pre_command() {
|
|
|
|
float_pre_command() {
|
|
|
|
if [[ -n $float_pre ]]; then
|
|
|
|
if [[ -n $float_pre ]]; then
|
|
|
|
if [[ $float_pre == bspwm ]]; then
|
|
|
|
if [[ $float_pre == bspwm ]]; then
|
|
|
|
float_pre="bspc rule -a '$1' -o floating=on"
|
|
|
|
bspc rule -a "$1" -o floating=on
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
eval "$float_pre"
|
|
|
|
eval "$float_pre"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
float_post_command() {
|
|
|
|
float_post_command() {
|
|
|
|
if [[ -n $oneshot_post ]] && [[ $1 == oneshot ]]; then
|
|
|
|
if [[ -n $oneshot_post ]] && [[ $1 == oneshot ]]; then
|
|
|
|
eval "$oneshot_post"
|
|
|
|
eval "$oneshot_post"
|
|
|
|
elif [[ -n $float_post ]]; then
|
|
|
|
elif [[ -n $float_post ]]; then
|
|
|
|
|
|
|
|
if [[ $float_post == openbox ]]; then
|
|
|
|
|
|
|
|
xdotool getactivewindow windowmove "$wid" "$xoff" "$yoff" windowsize "$wid" "$width" "$height"
|
|
|
|
|
|
|
|
else
|
|
|
|
eval "$float_post"
|
|
|
|
eval "$float_post"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
term_create() {
|
|
|
|
term_create() {
|
|
|
@ -163,7 +168,7 @@ wid_toggle() {
|
|
|
|
float_pre_command "$term"
|
|
|
|
float_pre_command "$term"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
xdotool windowmap "$wid"
|
|
|
|
xdotool windowmap "$wid"
|
|
|
|
float_post_command
|
|
|
|
float_post_command "$wid"
|
|
|
|
maybe_cancel_auto_show "$wid"
|
|
|
|
maybe_cancel_auto_show "$wid"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
xdotool windowunmap "$wid"
|
|
|
|
xdotool windowunmap "$wid"
|
|
|
@ -200,7 +205,7 @@ auto_show() {
|
|
|
|
class=$(< /tmp/tdrop/auto_hidden/class)
|
|
|
|
class=$(< /tmp/tdrop/auto_hidden/class)
|
|
|
|
float_pre_command "$class"
|
|
|
|
float_pre_command "$class"
|
|
|
|
xdotool windowmap "$wid"
|
|
|
|
xdotool windowmap "$wid"
|
|
|
|
float_post_command
|
|
|
|
float_post_command "$wid"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|