x11なし、swayが入っている
仮想環境上のarchlinux本家に
niriを追加しました。
当然のことながら、これも、wayland用の
ウィンドウマネージャーです。
pacman -S niri waybarで入ったのは、
cosmic-icon-theme、pop-icon-theme、
rtkit、xdg-desktop-portal、
xdg-desktop-portal-cosmic、niri、waybar
(waybarの導入理由:swayでは、
swaybarを使っていました)
$ yay wbg
することも必要でした。
プラグインあるんですかね。
試用するために設定でしたこと:
niriをインストールすることで、
~/.config/niri/config.kdlが
親切にも生成されます。
以下はいじったところの抜粋です。
バインドキーがたくさんあります。
ファイルは、全部で500行ほど。
input {
keyboard {
xkb {
// You can set rules, model, layout, variant and options.
// For more information, see xkeyboard-config(7).
// For example:
// layout "us,ru"
layout "us"
// options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
}
}
// You can configure outputs by their name, which you can find
// by running `niri msg outputs` while inside a niri instance.
// The built-in laptop monitor is usually called "eDP-1".
// Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs
// Remember to uncomment the node by removing "/-"!
output "Virtual-1" {
// Uncomment this line to disable this output.
// off
// Resolution and, optionally, refresh rate of the output.
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
// If the refresh rate is omitted, niri will pick the highest refresh rate
// for the resolution.
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
mode "1920x1200@59.885"
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
scale 1
// Transform allows to rotate the output counter-clockwise, valid values are:
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.transform "normal"
// Position of the output in the global coordinate space.
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
// The cursor can only move between directly adjacent outputs.
// Output scale and rotation has to be taken into account for positioning:
// outputs are sized in logical, or scaled, pixels.
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
// so to put another output directly adjacent to it on the right, set its x to 1920.
// If the position is unset or results in an overlap, the output is instead placed
// automatically.
position x=1920 y=0
}
// Add lines like this to spawn processes at startup.
// Note that running niri as a session supports xdg-desktop-autostart,
// which may be more convenient to use.
// See the binds section below for more spawn examples.
// spawn-at-startup "alacritty" "-e" "fish"
spawn-at-startup "fcitx5" "-d"
spawn-at-startup "vmware-user"
spawn-at-startup "vmhgfs-fuse" "/mnt/hgfs" "-o" "auto_unmount" "-o" "allow_other"
spawn-at-startup "waybar"
spawn-at-startup "wbg" "/home/user/画像/niri019-1024x576.png"
}
binds {
// Keys consist of modifiers separated by + signs, followed by an XKB key name
// in the end. To find an XKB name for a particular key, you may use a program
// like wev.
//
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
// when running as a winit window.
//
// Most actions that you can bind here can also be invoked programmatically with
// `niri msg action do-something`.
// Mod-Shift-/, which is usually the same as Mod-?,
// shows a list of important hotkeys.
Mod+Shift+Slash { show-hotkey-overlay; }
// Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+T { spawn "alacritty"; }
Mod+Return { spawn "foot"; }
Mod+D { spawn "fuzzel"; }
Mod+Ctrl+F { spawn "thunar"; }
Mod+Ctrl+W { spawn "firefox"; }
Mod+Ctrl+E { spawn "l3afpad"; }
Super+Alt+L { spawn "swaylock"; }
}
モニタの解像度合わせに必要な情報を得るには、
$ niri msg outputs
する必要がありました。
リフレッシュレートの数値について、
このコマンドで出た値を
きっちり入れる必要がありました。
特徴的なのは、ワークスペースが、
モニタの外、上下に隠れ並んでいる、
というイメージ。
横には、画面から追い出されつつ、
ウィンドウはいくらでも並ぶ
んだろうと思います。
ワークスペースを変えるには、
Modキー(Super)を押しながら、
マウスのホイールを回す。
横に並んでいるウィンドウを動かすには、
モニタの左右外にカーソルを追い出し、
クリックです。
ウィンドウの左右幅を変えることもできます。
Mod+Shiftを押しならボーダーラインをドラッグ。
左手でキーボード、右手のマウス、
で多くの操作をやるみたいです。
専用の壁紙がなく、ネット上にあった
古い壁紙を借用。表示バージョンも、違っていまして、
インストールしたniriは、0.1.10。
モニタの画面に、ウィンドウが増えると、
1画面に収まるように、ウィンドウがだんだん
小さくなっていくのが普通ですが、
これは、拡散型というか、違いがはっきりしています。
1画面に小さなウィンドウを並べて
一覧的に見て使う方法もあると思いますが、
まだやり方を知りません。
もっているムードとしては、
hyprlandと近いですかね。
アニメーションで動くので。
posted by ブログ開設者 at 00:39|
Comment(0)
|
linux
|
|