22 lines
407 B
Text
22 lines
407 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
# TODO: geomoetry flags?
|
||
|
|
||
|
flags=("")
|
||
|
case "$TERMINAL" in
|
||
|
kitty )
|
||
|
flags=(-o remember_window_size=no -o initial_window_width=122c -o initial_window_height=24c --class floating_terminal)
|
||
|
;;
|
||
|
|
||
|
# TODO: rxvt?
|
||
|
esac
|
||
|
|
||
|
if is_wayland; then
|
||
|
# wayland only needs app_id or class set to "floating_terminal"
|
||
|
: # no-op
|
||
|
else
|
||
|
bspc rule -a '*' -o state=floating
|
||
|
fi
|
||
|
|
||
|
"$TERMINAL" "${flags[@]}" "$@"
|