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 - URxvt
- Xterm - Xterm
- Termite - Termite
- Gnome-terminal
### Window Managers ### 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. 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,7 +154,12 @@ float_pre_command() {
eval "$float_pre" eval "$float_pre"
# use automatically set function if exists # use automatically set function if exists
elif [[ -n $(type float_pre) ]]; then elif [[ -n $(type float_pre) ]]; then
float_pre "$1" # 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 fi
} }

Loading…
Cancel
Save