更新:Deepin 20 請(qǐng)點(diǎn)這里
很多從 Windows 遷移過來的用戶總是對(duì)它的“刷新”菜單念念不忘,為了治好大家的“強(qiáng)迫癥”,今天就給大家介紹一下如何在 Deepin 下擴(kuò)展一個(gè)簡單的右鍵“刷新”菜單瘟裸。
一鍵安裝
- 硬件使用F5刷新笑窜,終端執(zhí)行
sh -c "$(wget https://raw.githubusercontent.com/Lyvnee/deepin-refresh/master/install1.sh -O -)"
- 硬件使用Fn+F5刷新茴晋,終端執(zhí)行
sh -c "$(wget https://raw.githubusercontent.com/Lyvnee/deepin-refresh/master/install2.sh -O -)"
ps. 請(qǐng)先安裝wget: sudo apt install wget
update 2018-11-24
手動(dòng)安裝
1.創(chuàng)建json文件
在~/.config/deepin/dde-file-manager/menuextensions
路徑下創(chuàng)建refresh.json
文件蜈缤,內(nèi)容如下缩滨。
[
{
"MenuType": "EmptyArea",
"Icon": "",
"Text[zh_CN]": "刷新",
"Exec": "deepin-refresh"
}
]
p.s.如果沒有如上路徑請(qǐng)自行建立柏腻。
注:~
表示當(dāng)前用戶的家目錄纸厉,即/home/<your username>/
。2018-11-22
2.創(chuàng)建deepin-refresh文件
在/usr/bin
路徑下創(chuàng)建deepin-refresh
文件并賦予它可執(zhí)行權(quán)限五嫂,內(nèi)容如下颗品。
#!/bin/bash
#xte 'keydown Multi_key' 'key F5' 'keyup Multi_key'
xte 'key F5'
p.s.請(qǐng)根據(jù)不同硬件,自行選擇使用F5
或Fn+F5
。
3.安裝依賴
打開深度終端輸入下面命令抛猫,安裝鍵盤模擬軟件xautomation
蟆盹。
sudo apt install xautomation
所有步驟完成之后,效果如下圖所示闺金。
右鍵刷新菜單效果圖