add support for gnome-terminal in combination with bspwm float pre

command
long-opts
angelic-sedition 10 years ago
parent e3c2e391e0
commit 7c86196618

@ -37,6 +37,7 @@ I will add examples and better instructions. For now, refer to the manpage.
- URxvt
- Xterm
- Termite
- Gnome-terminal
### Window Managers
The primary goal of tdrop is to "just work" with any window manager. The primary differences between how tdrop deals with different window managers is the strategy it takes for floating only the dropdown (as opposed to all instances of the class that the dropdown is) and how it deals with window managers that resize or move a window after mapping then unmapping it. There are three types of window managers as far as tdrop is concerned.

@ -154,8 +154,13 @@ float_pre_command() {
eval "$float_pre"
# use automatically set function if exists
elif [[ -n $(type float_pre) ]]; then
# needed when creating oneshot rules for programs where cmd differs from actual class name
if [[ $1 == "gnome-terminal" ]]; then
float_pre "Gnome-terminal"
else
float_pre "$1"
fi
fi
}
float_post_command() {

Loading…
Cancel
Save