1. 概要
「Manjaro 26.1 sway」では、それまでのものと設定方法がいささか異なるので、ページを改めます。
デフォルトで「rofi」というメニューが設定してありり、パネルの左上のスタートアイコンと思しきものをクリックすると中央に表示されるのは、以前と同様です。
「Manjaro 26.1 sway」は、完全に「Wayland」化されたようで、「jgmenu」が動作しません。
代わりに、「nwg-menu」を使用してみようかと思いましたが、動きが悪い。
「rofi」の見栄えを変えてみます。
2. バー設定
バー設定は。
~/.config/waybar/style.css
に書いてありますが、デフォルトで。
@import "colors.css";
@import "/usr/share/sway/templates/waybar/style.css";
/* Add your custom styles below — this file is yours to edit freely.
* colors.css is auto-managed by the theme switcher.
* To override the system style, add rules here instead of editing the
* system template at /usr/share/sway/templates/waybar/style.css */
と書かれておる。
「color.css」は放っておいていいですが、「style.css」ややこしいので。
2行目をコメントしたうえで。
ログインユーザで。
cat /usr/share/sway/templates/waybar/style.css >> ~/.config/waybar/style.css
vi ~/.config/waybar/style.css
「waybar」のフォントを変更します。
/* Reset all styles */
* {
border: none;
border-radius: 0;
min-height: 0;
margin: 0;
padding: 0;
font-family: "JetBrainsMono NF", "Roboto Mono", sans-serif;
}
45行を下記へ変更します。
font-family: "MigMix 1M", "JetBrainsMono NF", "Roboto Mono", sans-serif;
3. メニュー設定
「rofi」の表示位置、フォントを変更します。
cp /etc/sway/definitions ~/.config/sway/.
vi ~/.config/sway/definitions
# Application launcher
set $menu rofi -show combi -combi-modes "drun,run" -terminal "$term" -ssh-command "{terminal} {ssh-client} {host} [-p {port}]" -run-shell-command "{terminal} {cmd}" -show-icons -font "$gui-font" -lines 10
87行目を下記へ変更します。
set $menu rofi -show combi -combi-modes "drun,run" -terminal "$term" -ssh-command "{terminal} {ssh-client} {host} [-p {port}]" -run-shell-command "{terminal} {cmd}" -show-icons -font "MigMix 1M 10" -lines 10 -theme-str 'window {location: north west; anchor: north west; x-offset: 10px; y-offset: 40px; width: 350px;} listview {lines: 10;}'