에 주어진 해결책gsettings를 통해 Cinnamon의 전역 키 바인딩 사용자 정의Linux Mint 20에서는 작동하지 않습니다.
GUI를 사용하여 변경 사항을 모니터링 dconf watch /
하고 바로 가기를 만들 때 다음과 같이 변경했습니다.
/org/cinnamon/desktop/keybindings/custom-list
['custom0']
/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/binding
@as []
/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/command
'screen -d -m "/home/blueray/src/Translate/screen_ts.sh"'
/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/name
'capture2text'
/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/binding
['<Super>q']
내가 사용하는 첫 번째 줄을 설정하려면 다음을 수행하십시오.
gsettings set org.cinnamon.desktop.keybindings custom-list "['custom0']"
그러나 두 번째 줄에서는 오류가 발생합니다.
% gsettings set org.cinnamon.desktop.keybindings.custom-keybindings.custom0 binding "@as []"
No such schema “org.cinnamon.desktop.keybindings.custom-keybindings.custom0”
gsettings(GUI 아님)를 사용하여 Linux Mint 20에서 사용자 정의 바로가기를 설정하는 방법
답변1
다음 줄을 예로 사용할 수 있습니다.
dconf write /org/cinnamon/desktop/keybindings/custom-list "['custom0']"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom0/command "'tmux new-session -d "/home/blueray/src/Translate/screen_ts.sh"'"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom0/name "'capture2text'"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom0/binding "['<Super>q']"
# xkill keybinding for ctrl + escape
dconf write /org/cinnamon/desktop/keybindings/custom-list "['custom0', 'custom1']"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom1/command "'xkill'"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom1/name "'xkill'"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom1/binding "['<Primary>Escape']"