CentOS 7 hidden taskbar and top bar

Source: Internet
Author: User
Tags border color

I use GNOME, for the use of Windows I, this interface is indeed a bit ugly, but, will also be used, recently found a software (Cairo-dock) can beautify the desktop, and then installed, but after the installation found a problem: The original taskbar blocks the interface of the software, so you can find ways to hide the taskbar



1. Hide the taskbar


Delete/usr/share/gnome-shell/extensions/[email protected]extensions.gcampax.github.com directory



Before deleting the backup, need administrator rights, I directly back up to the directory, the bottom of the operation is done in/usr/share/gnome-shell/extensions/



CP [Email protected] [Email protected]


Delete



RM -RF [email protected]


These two steps can also be solved directly



MV CP [Email protected]
2. Hide the top bar


Three files need to be modified, namely/USR/SHARE/GNOME-SHELL/MODES/CLASSIC.JSON,/USR/SHARE/GNOME-SHELL/THEME/GNOME-CLASSIC.CSS and/usr/ Share/gnome-shell/theme/gnome-shell.css



/usr/share/gnome-shell/modes/classic.json



Back up first, go to the/usr/share/gnome-shell/modes/directory



CP Classic.json classic.json.backup


Modify the content, vi in the command mode can use "/keyword" to find



VI Classic.json


Modify the following



 

 "panel":{ "left": [],
    "center": [],
     "right": []
   }


/usr/share/gnome-shell/theme/gnome-classic.css



Again, back up first.



Modify the following


 
#panel {

    background-color: #e9e9e9;

    background-gradient-direction: vertical;

    background-gradient-end: #d0d0d0;
    border-top-color: #666; /* we don‘t supportnon-uniform border-colors and
                               use the top bordercolor for any border, so we
                               need to set iteven if all we want is a bottom
                               border */
    border-bottom: 1px solid #666;
    app-icon-bottom-clip: 0px;
     color: transparent;
     /* hrm, still no multipoint gradients
      background-image: linear-gradient(left,rgba(255, 255, 255, 0),rgba(255, 255, 255, 1) 50%,rgba(255, 255, 255, 0)) !important;*/
   }


/usr/share/gnome-shell/theme/gnome-shell.css Change two places



Last emphasis, back up



 
//The first place
#panel {
     background-color:transparent;
     font-weight: bold;
     height: 0px;
    }
//Second place
  .panel-logo-icon {
   padding-right: .4em;
   icon-size: 1px;
   }


Original code



/usr/share/gnome-shell/modes/classic.json




{
    "parentMode": "user",
    "stylesheetName": "gnome-classic.css",
    "enabledExtensions": ["[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"],
    "panel": { "left": ["activities", "appMenu"],
               "center": [],
               "right": ["a11y", "keyboard", "dateMenu", "aggregateMenu"]
             }
}


/usr/share/gnome-shell/theme/gnome-classic.css


 
#panel {
    background-color: #e9e9e9;
    background-gradient-direction: vertical;
    background-gradient-end: #d0d0d0;
    border-top-color: #666; /* we don‘t support non-uniform border-colors and
                               use the top border color for any border, so we
                               need to set it even if all we want is a bottom
                               border */
    border-bottom: 1px solid #666;
    app-icon-bottom-clip: 0px;

/* hrm, still no multipoint gradients
    background-image: linear-gradient(left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0)) !important;*/
}





/usr/share/gnome-shell/theme/gnome-shell.css



//I changed it later. I forgot to back it up. It can be displayed normally, almost the same as before.
#panel {
     background-color: #fff;
     font-weight: bold;
     height: 1.8em;
} 

 
 
.panel-logo-icon {
  padding-right: .4em;
  icon-size: .4em;
}





CentOS 7 hidden taskbar and top bar


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.