0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linuxデスクトップでワークスペースごとにアプリを割り当てて利用する(WaylandのUbuntu版)

0
Last updated at Posted at 2026-02-15

Wayland環境でワークスペースにアプリを紐付ける

以前に以下の記事を書きました。
この時はLinuxMint Cinnamonの環境でx11環境でしたが、今使っているPCの描画に色々問題があったので
Ubuntuの標準のもの(Gnome)をインストールしなおしました。
こちらはWaylandになっていて、前に使ったdevilspie2が使えなくなっています。

こんかいはUbuntu Gnome(Wayland)の環境で同じようなことが出来るようにしていきます。

ワークスペースを増やす

設定→マルチタスクで、固定ワークスペースにして数を10にする。

image.png

以下のコマンドでも同様の設定ができます。

gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces 10

キーボードショートカットの割当

こちらは設定画面だとワークスペース4までしか設定できなかったので、コマンドでセットします。

ワークスペースに Ctrl + [数字] で移動できるショートカット

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Control>1']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Control>2']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['<Control>3']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['<Control>4']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['<Control>5']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 "['<Control>6']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-7 "['<Control>7']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 "['<Control>8']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-9 "['<Control>9']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-10 "['<Control>0']"

現在のウィンドウをワークスペースへ移動させるショートカット

gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-1 "['<Control><Shift>1']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-2 "['<Control><Shift>2']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-3 "['<Control><Shift>3']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-4 "['<Control><Shift>4']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-5 "['<Control><Shift>5']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-6 "['<Control><Shift>6']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-7 "['<Control><Shift>7']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-8 "['<Control><Shift>8']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-9 "['<Control><Shift>9']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-10 "['<Control><Shift>0']"

Gnome拡張をインストールする

今回はGnome拡張を使って設定するのでGnome拡張を使えるようにします。

sudo apt install gnome-browser-connector

Firefoxで

にアクセスして、サイトの指示に従って拡張機能をインストールする。

その後以下にFirefoxでアクセスして、Auto Move Windowsという拡張を入れます。

image.png

ここで、一度OS再起動させます。

Windowとアプリの紐づけ

もう一度FirefoxでAuto Move Windowsの拡張のページを開きます。

image.png

右上に青色の設定ボタンが増えているので設定を開きます。

image.png

出てきた画面で「+」ボタンを押してアプリとワークスペースを紐づけていきます。
これでアプリが指定したワークスペースで開くようになります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?