From 9b4f0fe713af0fc2770d45591c5307d2a3cb702b Mon Sep 17 00:00:00 2001 From: noctuid Date: Wed, 23 Mar 2016 11:32:21 -0400 Subject: [PATCH] Add support for compiz Addresses #14. --- README.md | 1 + tdrop | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4840e33..06af67f 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ That said, these are the floating window managers that currently have '-a' setti - marco (mate) - kwin (kde) - openbox (lxde) +- compiz (unity) - pekwm - fluxbox - blackbox diff --git a/tdrop b/tdrop index 8e855d1..84031c1 100755 --- a/tdrop +++ b/tdrop @@ -340,7 +340,7 @@ wm_autoset_for_hide_show() { subtract_when_same=false fi - if [[ $wm =~ ^(pekwm|Fluxbox|Blackbox|xfwm4|Metacity|FVWM|Sawfish|GoomwW|Mutter|GNOME Shell|Mutter \(Muffin\)|KWin|Metacity \(Marco\))$ ]]; then + if [[ $wm =~ ^(pekwm|Fluxbox|Blackbox|xfwm4|Metacity|FVWM|Sawfish|GoomwW|Mutter|GNOME Shell|Mutter \(Muffin\)|KWin|Metacity \(Marco\)|Compiz)$ ]]; then combine_map_post=true map_post() { xdotool windowmap "$1" windowmove "$1" "$2" "$3" @@ -368,7 +368,7 @@ wm_autoset_for_dropdown() { windowsize "$1" "$width" "$height" } # floating window managers that may move a window after unmapping then mapping it - elif [[ $wm =~ ^(pekwm|Fluxbox|Blackbox|xfwm4|Metacity|FVWM|Sawfish|GoomwW|Mutter|GNOME Shell|Mutter \(Muffin\)|KWin|Metacity \(Marco\))$ ]]; then + elif [[ $wm =~ ^(pekwm|Fluxbox|Blackbox|xfwm4|Metacity|FVWM|Sawfish|GoomwW|Mutter|GNOME Shell|Mutter \(Muffin\)|KWin|Metacity \(Marco\)|Compiz)$ ]]; then # most will center # mutter/gnome shell will move to top centerish (just below panel on gnome shell) # xfwm4 will normally move to top left; metacity will move close to top left