在同一桌面上创建显示或隐藏我想要的任何窗口,而不是默认的 SUPER + NUM 功能。
我也要删除默认的(旧)。
答案 0 :(得分:0)
function solution(x) {
for (let i = 0; i < x.length; i++) {
for (let j = 0; j < x.length; j++) {
if (x[i][j] == x[i][j + 1] && x[i][j] !== 0) {
x[i][j + 1] = x[i][j] * 2;
x[i][j] = 0;
// If you only want one move, you can break here
break;
}
}
}
return JSON.stringify(x)
}
console.log(solution([[0,0,2,2], [4,4,8,4], [64,64,8,4], [16,8,64,8]]));
console.log(solution([[2,2,4,8],[8,8,64,64],[64,8,16,8],[8,8,8,8]]))
console.log(solution([[64,64,64,64],[8,8,8,8],[4,4,4,4],[2,2,2,2]]))
console.log(solution([[0,0,4,4],[4,8,4,8],[8,8,8,8],[64,8,16,8]]))
console.log(solution([[2,0,4,4],[4,4,4,4],[8,0,0,8],[0,64,64,64]]))
gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false
gsettings set org.gnome.shell.keybindings switch-to-application-1 []
gsettings set org.gnome.shell.keybindings switch-to-application-2 []
gsettings set org.gnome.shell.keybindings switch-to-application-3 []
gsettings set org.gnome.shell.keybindings switch-to-application-4 []
gsettings set org.gnome.shell.keybindings switch-to-application-5 []
gsettings set org.gnome.shell.keybindings switch-to-application-6 []
gsettings set org.gnome.shell.keybindings switch-to-application-7 []
gsettings set org.gnome.shell.keybindings switch-to-application-8 []
gsettings set org.gnome.shell.keybindings switch-to-application-9 []
sudo apt get install dconf-editor
dconf-editor
,然后单击并设置“ []”(可能不正确)org.gnome.shell.keybindings
并粘贴剪贴板内容gedit ~/Tools/ywm.sh
sudo chmod u+x '~/Tools/ywm.sh'
Shortcut
按钮+
bash -c "bash ~/Tools/ywm.sh gnome-terminal"
bash -c "bash ~/Tools/ywm.sh google-chrome"
bash -c "bash ~/Tools/ywm.sh code"
bash -c "bash ~/Tools/ywm.sh nautilus"
bash -c "bash ~/Tools/ywm.sh gedit"