arch截圖工具--shutter(圖形化) / scort(命令)
在初步配置完自己的arch+i3-gaps之後,當然需要一個截圖工具來分享,最開始選擇的是scrot,用了一段時間後,發現scrot有很多不便的地方,必須命令列使用,無法複製到剪貼簿,換了shutter,又見到了網上有改造scort的方法,因此都紀錄了下來
0. 桌面截圖鎮樓

1. scrot
-
最開始選擇的是scrot,網上一搜就有推薦的,就順手裝了一個,使用也比較簡單,簡單羅列幾個常用的
scrot [option] [file]-----基本格式 scrot 引數 檔名
-
引數
-d NUM-------延遲NUM秒後截圖
-c-----搭配-d,顯示延時的倒計時
-s-------手動框選截圖(沒法截圖,自己體驗)
scrot -s xxx.png
搭配 xclip
截圖並貼上到剪貼簿(手動劃重點)
- 安裝
xclip
yaourt -S xclip
- 配置快捷鍵操作
注意: 個人自制操作,較為麻煩,但使用上完美還原我在Ubuntu時的截圖操作 - 首先將如下程式碼寫入i3配置檔案
# cut all the screen bindsym--release Print exec "sh ~/.config/i3/screencut/cut_all.sh" # cut current window bindsym --release $mod+Print exec "sh ~/.config/i3/screencut/cut_cur.sh" # cut selection bindsym --release $mod+Shift+Print exec "sh ~/.config/i3/screencut/cut_sel.sh"
- 分別建立上面程式碼中的多個
shell
檔案,內容如下:
~/.config/i3/screencut/cut_all.sh
scrot -e 'xclip -selection clipoard -t "image/png" $f && mv $f ~/Picture/ScreenShortcut/%Y-%m-%d_%H:%m_desktop.png'
~/.config/i3/screencut/cut_cur.sh
scrot -u -b -m -e 'xclip -selection clipoard -t "image/png" $f && mv $f ~/Picture/ScreenShortcut/%Y-%m-%d_%H:%m_current.png'
~/.config/i3/screencut/cut_sel.sh
scrot -s -b -m -e 'xclip -selection clipoard -t "image/png" $f && mv $f ~/Picture/ScreenShortcut/%Y-%m-%d_%H:%m_select.png'
-
mod+shift+r重新整理一下桌面,就可以用了
PrtSc---直接擷取全屏並複製到剪貼簿
mod + PrtSc---擷取當前活動視窗並複製到剪貼簿
mod + shift + PrtSc---框選截圖並複製到剪貼簿
- 注意 : 上面的檔案路徑以及檔名都是個人自定義,可選擇自己喜歡的路徑及檔名
- 個人配置, 如果你有更好的建議,歡迎幫我做出改進 _
2. shutter
安裝
yaourt -S shutter
按照指引安裝軟體及依賴即可

- 圖形化的軟體,介面設計也很簡潔,就不多做介紹
繫結到快捷鍵
將軟體的啟動繫結到快捷鍵,方便使用
bindsym $mod+Print exec shutter

PrtSc
鍵來快速啟動
shutter
了,但是實際上個人感覺不如上面的配置好用