Cinnamon Window Buttons 1.0

UUID: windowButtons@lippy
Score: 12

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! :)


21 Comments

  1. mbokil says:

    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.

  2. 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

  3. Ivan76 says:

    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???

  4. Projekt2501 says:

    Does not work für me: Mint 13 Maya

  5. abnvolk says:

    Perfect! 5 stars from me.

  6. It's works perfectly

  7. debimint says:

    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

  8. Grizonic says:

    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!

  9. pe3kk says:

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

  10. HisDudeness says:

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

  11. HisDudeness says:

    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...

  12. fmete says:

    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

  13. fmete says:

    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. Semmu says:

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

  15. alexRu says:

    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?

  16. al-dias says:

    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"

  17. drdavidk says:

    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?

  18. merlo777 says:

    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?

  19. Vampir3 says:

    Unfortunately, not work in LMDE >;<

  20. maczko says:

    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!

  21. drdavidk says:

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