diff --git a/README.md b/README.md index f490ba8..f2fb206 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/tdrop b/tdrop index cbf8166..3d04b0a 100755 --- a/tdrop +++ b/tdrop @@ -154,7 +154,12 @@ float_pre_command() { eval "$float_pre" # use automatically set function if exists 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 }