CentOS 7 hides the taskbar and top bar, And the centos taskbar

Source: Internet
Author: User

CentOS 7 hides the taskbar and top bar, And the centos taskbar

I am using Gnome. For me who are familiar with windows, this interface is indeed a bit ugly, but it will also be used. Recently I found a software (Cairo-Dock) the desktop can be beautified, so it is installed, but a problem is found after installation:The original taskbar blocks the interface of the software.To hide the taskbar.

1. Hide the taskbar

Delete/usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com directory

Backup is performed before deletion. The administrator privilege is required. I directly backed up the backup to the directory where it is located. The following operations are performed in/usr/share/gnome-shell/extensions /.

cp window-list@gnome-shell-extensions.gcampax.github.com window-list@gnome-shell-extensions.gcampax.github.com.backup

Delete

rm -rf window-list@gnome-shell-extensions.gcampax.github.com

These two steps can also be solved directly

mv window-list@gnome-shell-extensions.gcampax.github.com cp window-list@gnome-shell-extensions.gcampax.github.com.backup
2. Hide the top bar

You need to modify three files:/usr/share/gnome-shell/modes/classic. json,/usr/share/gnome-shell/theme/gnome-classic.css &/usr/share/gnome-shell/theme/gnome-shell.css

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

Back up the data first and go to the/usr/share/gnome-shell/modes/directory.

cp classic.json classic.json.backup

Modify the content. In command mode, you can use "/keyword" to search for the content.

vi classic.json

Modify as follows:

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

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

Back up data first.

Modify as follows:

#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 modify two places

The last time I stress that I back up data first

// First place
# Panel {background-color: transparent; font-weight: bold; height: 0px ;}
// The second part. 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": ["apps-menu@gnome-shell-extensions.gcampax.github.com","places-menu@gnome-shell-extensions.gcampax.github.com","alternate-tab@gnome-shell-extensions.gcampax.github.com","launch-new-instance@gnome-shell-extensions.gcampax.github.com","window-list@gnome-shell-extensions.gcampax.github.com"],    "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

// This was changed later. I forgot to back up the data. It can be displayed normally, similar to the original one.
# Panel {background-color: # fff; font-weight: bold; height: 1.8em ;}
.panel-logo-icon {  padding-right: .4em;  icon-size: .4em;}

 

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.