Gnome设置工作区系列按键跟i3一样脚本

zsh执行

gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false
dconf write /org/gnome/shell/extensions/dash-to-panel/hot-keys false
dconf write /org/gnome/shell/extensions/dash-to-panel/hotkey-prefix-text "''"
for i in $(seq 1 10); do 
  dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-$i "['']"
  dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-$i "['']"
  dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-$i "['']"
  dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-$i "['']"
  dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-$i "['']"
  dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-$i "['']"
done

for i in $(seq 1 9); do gsettings set org.gnome.shell.keybindings switch-to-application-${i} '[]'; done
for i in $(seq 1 9); do dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-$i "['<Super>$i']";done
for i in $(seq 1 9); do dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-$i "['<Super><Shift>$i']";done
posted @ 2023-05-15 11:54  ZhuFN  阅读(36)  评论(0编辑  收藏  举报