Question: How do I remove a Title Bar?

Questions about applications and software
Forum rules
Before you post please read this

Question: How do I remove a Title Bar?

Postby Nami on Wed May 15, 2013 2:58 am

Greetings,

I am curious as to if it is possible to remove the Title Bars from various applications. For example I have been able to easily remove it from Chromium and Firefox but would like to at the very least remove it form Thunderbird and XChat, as they are among my most used applications and the redundant/wasted space is frustrating. For clarification of what I mean please see the following image - http://i.imgur.com/FYQG8Jw.png I am currently on Mint 14 (Nadia) with Cinnamon 1.6.7.

I appreciate any guidance you can give,
Nami
Last edited by Nami on Wed May 15, 2013 3:56 am, edited 1 time in total.
Image
User avatar
Nami
Level 1
Level 1
 
Posts: 8
Joined: Wed May 15, 2013 2:49 am

Linux Mint is funded by ads and donations.
 

Re: Question: How do I remove a Title Bar?

Postby samriggs on Wed May 15, 2013 3:33 am

yup this is done through the metacity file for the theme your using, can make the titlebar any size you want, and design it however you want.
that's if your using cinnamon or mate they use metacity for the framework (titlebar sides and bottom of windows)
"Windows: the worst system for the most money, Linux: the best system for free"
Registered Linux User #545430
SolydK
User avatar
samriggs
Level 5
Level 5
 
Posts: 843
Joined: Sun Apr 24, 2011 6:09 pm
Location: Canada

Re: Question: How do I remove a Title Bar?

Postby Nami on Wed May 15, 2013 3:58 am

samriggs wrote:yup this is done through the metacity file for the theme your using, can make the titlebar any size you want, and design it however you want.
that's if your using cinnamon or mate they use metacity for the framework (titlebar sides and bottom of windows)


Thanks for the information but forgive my ignorance, where do I locate this metacity file? I am using the stock theme for Cinnamon 1.6.7 as far as I'm aware.
Image
User avatar
Nami
Level 1
Level 1
 
Posts: 8
Joined: Wed May 15, 2013 2:49 am

Re: Question: How do I remove a Title Bar?

Postby Nami on Wed May 15, 2013 4:09 am

On a related note there seems to be an applet that serves my needs however I can't seem to get it working with 1.6.7 - which it does not support clearly. I get an e is null error and missing 'main' when I check errors from Alt+F4 'lg'. Since 1.6.7 doesn't seem to have an extensions folder I dropped it in applets and renamed the .js to applet.js.

http://cinnamon-spices.linuxmint.com/extensions/view/19
Image
User avatar
Nami
Level 1
Level 1
 
Posts: 8
Joined: Wed May 15, 2013 2:49 am

Re: Question: How do I remove a Title Bar?

Postby samriggs on Wed May 15, 2013 4:56 am

I'm using 1.6 and mine has an extension folder, if you go into your home directory then .local (hidden folder) then share>cinnamon if extensions isn't there just add the folder, it should work although I like my titlebars so I wouldn't use this extension.
Themes are in the themes folder but you can make your own by adding a .themes folder to your home directory and just copy paste the theme into there and rename it so it shows up differently.
Then go into the theme folder inside the metacity one you'll see a xml thats where you can adjust the titlebar, but if you never done it before it might be abit difficult, unless you know some xml then it should be too bad.
BUT if you can get this extension working then it would be a lot better way to go.
"Windows: the worst system for the most money, Linux: the best system for free"
Registered Linux User #545430
SolydK
User avatar
samriggs
Level 5
Level 5
 
Posts: 843
Joined: Sun Apr 24, 2011 6:09 pm
Location: Canada

Re: Question: How do I remove a Title Bar?

Postby samriggs on Wed May 15, 2013 5:16 am

Ok ya got me too curious.
I downloaded it and tried it out and I got it working, but it only does it at max window on mine.
I'm using LMDE
so go into the .local then to share>cinnamon then create a folder called extensions
put it inside that, but open the metadata.json file and add your "1.6.7" or else it wont work
mine json file looks like this

Code: Select all
{
 "extension-id": "maximus-cinnamon",
 "uuid": "maximus-cinnamon@mathematical.coffee.gmail.com",
 "name": "Maximus",
 "description": "Undecorate maximized windows, like Ubuntu's old 'Maximus' package. See readme at extension homepage.",
 "cinnamon-version": [
     "1.4", "1.5", "1.5.1", "1.5.2" , "1.6.7"
 ],
 "url": "https://bitbucket.org/mathematicalcoffee/maximus-gnome-shell-extension",
 "version": 5,
 "dev-version": "2.0"
}


I rebooted it and volia it works but only on max window.
make sure you go into menu>preferences>cinnamon settings > extensions and choose it from there.
Not a bad extension although I won't be using it but it ain't bad
Sam
"Windows: the worst system for the most money, Linux: the best system for free"
Registered Linux User #545430
SolydK
User avatar
samriggs
Level 5
Level 5
 
Posts: 843
Joined: Sun Apr 24, 2011 6:09 pm
Location: Canada

Re: Question: How do I remove a Title Bar?

Postby Nami on Wed May 15, 2013 5:44 am

samriggs wrote:Ok ya got me too curious.
I downloaded it and tried it out and I got it working, but it only does it at max window on mine.
I'm using LMDE
so go into the .local then to share>cinnamon then create a folder called extensions
put it inside that, but open the metadata.json file and add your "1.6.7" or else it wont work
mine json file looks like this

Code: Select all
{
 "extension-id": "maximus-cinnamon",
 "uuid": "maximus-cinnamon@mathematical.coffee.gmail.com",
 "name": "Maximus",
 "description": "Undecorate maximized windows, like Ubuntu's old 'Maximus' package. See readme at extension homepage.",
 "cinnamon-version": [
     "1.4", "1.5", "1.5.1", "1.5.2" , "1.6.7"
 ],
 "url": "https://bitbucket.org/mathematicalcoffee/maximus-gnome-shell-extension",
 "version": 5,
 "dev-version": "2.0"
}


I rebooted it and volia it works but only on max window.
make sure you go into menu>preferences>cinnamon settings > extensions and choose it from there.
Not a bad extension although I won't be using it but it ain't bad
Sam


Thanks for the info, I didn't think to just simply create an extensions folder heh :?

However I instead installed the PPA for Cinnamon 1.8.2 and after struggling to get it functioning it appears as if Extensions are back in, and the Maximus extension works just fine after a restart. But this might help other users I would hope. I was specifically looking for decorations being removed while Maximized but I'd love to see a better solution for removing the Title Bar in tiled/non full-screen windows. This however is a satisfying result for now.

Thanks everyone :D
Image
User avatar
Nami
Level 1
Level 1
 
Posts: 8
Joined: Wed May 15, 2013 2:49 am

Re: Question: How do I remove a Title Bar?

Postby samriggs on Wed May 15, 2013 6:02 am

I think I got the solution for you, in the javascript file you will see this
Code: Select all
/*** If you want to undecorate half-maximised windows then change this to true. ***/
const undecorateHalfMaximised = false;


set it to true instead of false for the boolean and try it out and see if it works for you.
I kind of figured if he got max windows undecorated you should be able to do the same in the same code for unmax windows as well and it looks like he did add an option for that also.
Hope it works for you.
Sam
"Windows: the worst system for the most money, Linux: the best system for free"
Registered Linux User #545430
SolydK
User avatar
samriggs
Level 5
Level 5
 
Posts: 843
Joined: Sun Apr 24, 2011 6:09 pm
Location: Canada

Re: Question: How do I remove a Title Bar?

Postby Nami on Wed May 15, 2013 2:25 pm

samriggs wrote:I think I got the solution for you, in the javascript file you will see this
Code: Select all
/*** If you want to undecorate half-maximised windows then change this to true. ***/
const undecorateHalfMaximised = false;


set it to true instead of false for the boolean and try it out and see if it works for you.
I kind of figured if he got max windows undecorated you should be able to do the same in the same code for unmax windows as well and it looks like he did add an option for that also.
Hope it works for you.
Sam


Very cool, thanks for the insight. Though it is annoying that the decorations removes the - + x along with the title bar neither were really neccessary to begin with, I always just used OS Key+Arrows to justify left/right/maximize/minimize and the toolbar to close windows.
Image
User avatar
Nami
Level 1
Level 1
 
Posts: 8
Joined: Wed May 15, 2013 2:49 am

Re: Question: How do I remove a Title Bar?

Postby samriggs on Wed May 15, 2013 2:52 pm

Nami wrote:
samriggs wrote:I think I got the solution for you, in the javascript file you will see this
Code: Select all
/*** If you want to undecorate half-maximised windows then change this to true. ***/
const undecorateHalfMaximised = false;


set it to true instead of false for the boolean and try it out and see if it works for you.
I kind of figured if he got max windows undecorated you should be able to do the same in the same code for unmax windows as well and it looks like he did add an option for that also.
Hope it works for you.
Sam


Very cool, thanks for the insight. Though it is annoying that the decorations removes the - + x along with the title bar neither were really neccessary to begin with, I always just used OS Key+Arrows to justify left/right/maximize/minimize and the toolbar to close windows.


Yup the - + X is part of the titlebar, the outer frame is the metacity (which includes the resizing and close buttons0, anything inside the window is the gtk, the panel and rest (pretty much) is the shell (gnome, cinnamon, unity etc)
"Windows: the worst system for the most money, Linux: the best system for free"
Registered Linux User #545430
SolydK
User avatar
samriggs
Level 5
Level 5
 
Posts: 843
Joined: Sun Apr 24, 2011 6:09 pm
Location: Canada

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: utamav and 28 guests