CentOS 7 隱藏工作列和頂欄

來源:互聯網
上載者:User

標籤:

我使用的是Gnome,對於使用慣了windows的我來說,這個介面確實有點醜,但是,也將就著用了,最近發現有一款軟體(Cairo-Dock)可以美化案頭,於是就安裝了,但是安裝之後發現了一個問題:原來的工作列擋住了這個軟體的介面,於是就想辦法隱藏工作列

1.隱藏工作列

 刪除/usr/share/gnome-shell/extensions/[email protected]extensions.gcampax.github.com 目錄

 刪除之前先備份,需要管理員權限,我直接備份到了所在目錄,下邊的操作是在/usr/share/gnome-shell/extensions/進行的

cp [email protected] [email protected]

刪除

rm -rf [email protected]

這兩步也可以直接一步解決

mv [email protected] cp [email protected]
2.隱藏頂欄

 需要修改三個檔案,分別是/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

還是先備份,進入/usr/share/gnome-shell/modes/目錄

cp classic.json classic.json.backup

修改內容,vi在命令模式下可以使用“/關鍵詞“進行尋找

vi classic.json

修改如下

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

/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 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修改兩處

最後一次強調,先備份

//第一處
#panel { background-color:transparent; font-weight: bold; height: 0px; }
//第二處 .panel-logo-icon { padding-right: .4em; icon-size: 1px; }

原始代碼

/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

//這是我後來改的,原先的忘記備份了,可以正常顯示,和原來差不多
#panel { background-color: #fff; font-weight: bold; height: 1.8em;}
.panel-logo-icon {  padding-right: .4em;  icon-size: .4em;}

 

CentOS 7 隱藏工作列和頂欄

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.