Cinnamon Window Buttons 1.0

UUID: windowButtons@lippy
Score: 9

Download



A Cinnamon applet that adds window buttons to the panel. Based on the Window Buttons Gnome Shell extension by biox.

There are two main modes for the applet. The default behaviour is for the buttons to control the active window. The other 'onlymax' behaviour is for the buttons to control the uppermost maximized window.

There are a few other options. They can all be configured by running dconf-editor and navigating to /org/cinnamon/applets/windowButtons@lippy. Hopefully I'll be able to add a UI for this in a future release.

It's possible to use this with the titlebar disabled for maximized windows. This page gives a good explanation for how to do that.

Requirements

You need to be able to run glib-compile-schemas. In order to do that on Ubuntu / Debian / Linux Mint, use sudo apt-get install libglib2.0-dev.

Installation

  1. Extract the .zip to a temporary directory.
  2. Copy the windowButtons@lippy directory to ~/.local/cinnamon/applets or /usr/share/cinnamon/applets.
  3. As root, copy the org.cinnamon.applets.windowButtons@lippy.gschema.xml file to /usr/share/glib-2.0/schemas.
  4. As root, run glib-compile-schemas /usr/share/glib-2.0/schemas.
  5. Open Cinnamon Settings, navigate to Applets and enable the Cinnamon Window Buttons applet.
  6. Enjoy!

Known Issues

  • If you click and hold on a button then move the cursor away before releasing, it will not cancel the button event. In fact, it doesn't matter where on the panel you click on after that. It will still trigger the button event as if you had clicked on the button. I'm not sure how to fix this, and the problem doesn't appear to be exclusive to this applet either.
  • The maximize button can be stuck in the highlighted state occasionally. This happens when the button changes to the restore button or vice versa shortly after the cursor has been over it. Mousing over the button will fix the problem if it crops up. I'll try to fix this in the next version.

Changelog

1.0 - 2012/05/10

  • Initial release.

About The Author

Lippy

I'll confess now. I know nothing about JavaScript. I know even less about CSS, if that's possible. I didn't even know how SVG images worked until recently, let alone how to make one.

I can go on. It's been years since I've touched C. I think I can draw but I don't do that often either. At this point you are probably thinking that I came from another planet, and you might be right! Uhh... I'm really advertising myself well here! :P

I currently run LMDE pointed to Debian Testing. I've abused it for over 6 months now. At one point it was more Sid than Testing. And yet it is still as solid as a rock. Can't ask for more than that! :)


25 Comments

  1. dinilu says:

    6 months ago

    Sorry, the error message is: An error occurred during installation or updating. You may wish to report this incident to the developer of windowButtons@lippy. If this was an update, the previous installation is unchanged Details: [Errno 2] No existe el archivo o el directorio: '/tmp/tmpmyRIdF/metadata.json' Cheers

  2. dinilu says:

    6 months ago

    Same problem as Enkouyami with Ubuntu 13.04 and Cinnamon 1.8.8. Instalation tool from the Applet Manager shows this error: <> Manual instalation show the applet in the manager but it doesn't work.

  3. Enkouyami says:

    8 months ago

    I'm using Cinnamon 1.8.8 and can't install this using the Applets program in Cinnamon. After manually installing this, its not showing up when I add it to my panel.

  4. maczko says:

    10 months ago

    drdavidk: thanks for that! every day something new to learn :-)

  5. drdavidk says:

    11 months ago

    maczko: for what it's worth, install dconf-tools in LMDE and it gives you dconf-editor.

  6. maczko says:

    1 year ago

    Great applet, I am using it with Maximus on LMDE 201303 32bit Cinnamon 1.6.7. I followed the installation, but first didn't worked, no buttons on the panel. On Ubuntu based Linux Mint the solution is to install dconf-editor and under org > gnome > shell > extensions > window-buttons modify the 'pinch' value (change it to Metacity or Custom) - more at: http://www.webupd8.org/2011/12/get-unity-like-window-buttons-on-top.html But dconf-editor isn't available in LMDE repos, so I changed the coresponding values in the org.cinnamon.applets.windowButtons@lippy.gschema.xml file using gedit: - on line 25 replaced 'Cinnamon' with 'Custom' - on line 37 (onlymax - control only maximized windows) replaced false with true - on line 43 (hideonnomax) replaced false with true Then follow installation from step 3 (as root copy the new org.cinnamon.applets.windowButtons@lippy.gschema.xml file to /usr/share/glib-2.0/schemas; then as root run in terminal glib-compile-schemas /usr/share/glib-2.0/schemas ). Hope it helps!

  7. Vampir3 says:

    1 year ago

    Unfortunately, not work in LMDE >;<

  8. merlo777 says:

    1 year ago

    Hi, I followed the installation instruction, but nothing! I does not work! My linux is fedora 18/cinnamon 1.6.7, with this packeges intalled: glib2-2.34.2-2.fc18.x86_64 glib2-devel-2.34.2-2.fc18.x86_64 Any suggestions?

  9. drdavidk says:

    1 year ago

    Thanks so much for the applet, and for the latest fix for Cinnamon 1.6.7. I haven't been able to change the theme, despite using dconf-editor, however. Any tips?

  10. al-dias says:

    1 year ago

    For use in Cinnamon 1.6.7, run dconf-editor and change key : /org/cinnamon/applets/windowButtons@lippy//pinch change to Custom and restart cinnamon. When pinch=Cinnamon or pinch=Metacity call a key non-existent in applet.js : "/desktop/cinnamon/windows/button_layout" or "/apps/metacity/general/button_layout"

  11. alexRu says:

    1 year ago

    it didnt work by default in latest Mint Nadya for me, but i opened dconf and changed setting "pinch" from Cinnamon to Metacity and buttons appeared. I am not good in js, but maybe smb could fix that?

  12. Semmu says:

    1 year ago

    Hi! It's not working with Cinnamon 1.6.7. Can you please update it? It would be very handy!

  13. fmete says:

    1 year ago

    Problems cause from ; "if (!activeWindow || activeWindow.get_title() == "Desktop") {" because i use Turkish Mint, so i change "Desktop"=>"Masaüstü" but still minimize problem go on. i found temporary solution, change; (0->1) 168 :: for ( let i = 1; i < orderRight.length; ++i ) { now minimize icon is hide :)

  14. fmete says:

    1 year ago

    works for cinnamon 1.6 . But i have small problem, when no windows open, if i click close or minimize button, also desktop (file manager-icons, left clisk-) minimize and close. ?ts very usefull applet, in my opinion it comes default with cinnamon

  15. HisDudeness says:

    1 year ago

    Do anyone know what's going wrong? The applet does not show at all. I compiled the schemas and everything. This is just like the applet I need the most...

  16. HisDudeness says:

    1 year ago

    Not showing at all on LMDE 201204. I'd really like to use this applet...

  17. pe3kk says:

    1 year ago

    Does not work for Cinnamon 1.6.1, no buttons appear on the panel. Thanks

  18. Grizonic says:

    1 year ago

    Awesome applet! When I was on cinnamon 1.4 it did work perfectly for me, but now with cinnamon 1.6 that's not the case anymore. I installed it according to the install notes and it even loads ok (no errors in the glass view). But then I don't have any buttons... Anything I might be doing wrong? Or is it just an incompatibility with cinnamon 1.6? Thanks!

  19. debimint says:

    1 year ago

    yeah this does not work for me either. i installed correctly, added the applet but no buttons appear on the panel. help please. im running Mint 13

  20. conejodesigner says:

    1 year ago

    It's works perfectly

  21. abnvolk says:

    1 year ago

    Perfect! 5 stars from me.

  22. Projekt2501 says:

    1 year ago

    Does not work für me: Mint 13 Maya

  23. Ivan76 says:

    1 year ago

    Ma non sarebbe piu semplice per gli utenti novizi uno script per l'istallazione all interno del pacchetto com'è stato fatto per altre estensioni facilitandogli ancor'piu la cosa???

  24. JamesSpearman says:

    1 year ago

    I like this applet. Now just looking for an applet that puts the titlebar in the panel seen here: http://www.webupd8.org/2012/02/window-applets-finally-available-for.html

  25. mbokil says:

    1 year ago

    You have a nice applet. I run Cinnamon maximized on my laptop with the maximus app so it is nice to be able to access the windows controls. It would be fantastic if there was another applet which allows you to access the menu, similar to Ubuntu's global menu, for people running maximized windows on netbooks. I think it would be better if you can find away to move away from libglib2.0-dev. You can use the Gnome shell gsettings to set/get schema within your applet.