差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| tips:linux:arch:gui:desktop:hyprland:start [2026/05/24 11:40] – [初期カスタマイズ] asaasa | tips:linux:arch:gui:desktop:hyprland:start [2026/05/26 00:09] (現在) – [hyprland.conf 最小限カスタムしたやつ] asaasa | ||
|---|---|---|---|
| 行 2: | 行 2: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ==== 注意点 ==== | ||
| + | * 仮想PCでは3DアクセラレーションONにしないと起動すらしません。 | ||
| + | * VirtualBox では壁紙描写がうまくいかないなどの一部問題があります。 | ||
| + | * VMware Workstation では以下のおまじないを頭につけると動くものもあります | ||
| + | <code bash> | ||
| + | user$ LIBGL_ALWAYS_SOFTWARE=1 pavucontrol | ||
| + | user$ LIBGL_ALWAYS_SOFTWARE=1 alacritty | ||
| + | </ | ||
| + | |||
| + | |||
| ===== 入れ方 ===== | ===== 入れ方 ===== | ||
| 行 8: | 行 19: | ||
| user$ sudo pacman -S hyprland xdg-desktop-portal-hyprland lightdm lightdm-gtk-greeter xdg-user-dirs foot thunar wofi waybar \ | user$ sudo pacman -S hyprland xdg-desktop-portal-hyprland lightdm lightdm-gtk-greeter xdg-user-dirs foot thunar wofi waybar \ | ||
| pipewire pipewire-pulse wireplumber alsa-utils pavucontrol sof-firmware \ | pipewire pipewire-pulse wireplumber alsa-utils pavucontrol sof-firmware \ | ||
| + | cliphist wl-clipboard hyprshot \ | ||
| fcitx5 fcitx5-mozc fcitx5-configtool fcitx5-gtk fcitx5-qt | fcitx5 fcitx5-mozc fcitx5-configtool fcitx5-gtk fcitx5-qt | ||
| user$ LC_ALL=C.UTF-8 xdg-user-dirs-update --force | user$ LC_ALL=C.UTF-8 xdg-user-dirs-update --force | ||
| 行 23: | 行 35: | ||
| * waybar : ステータスバー | * waybar : ステータスバー | ||
| * pipewire の行 : サウンドまわり | * pipewire の行 : サウンドまわり | ||
| + | * clip の行 : クリップボード拡張系 | ||
| * fcitx5 の行 : 日本語入力まわり | * fcitx5 の行 : 日本語入力まわり | ||
| 行 123: | 行 136: | ||
| } | } | ||
| } | } | ||
| + | |||
| + | xwayland { | ||
| + | force_zero_scaling = true | ||
| + | } | ||
| + | |||
| exec-once = sleep 5 && waybar | exec-once = sleep 5 && waybar | ||
| exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP | exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP | ||
| - | + | ||
| + | # | ||
| + | exec-once = cliphist wipe | ||
| + | exec-once = wl-paste --type text --watch cliphist store | ||
| + | exec-once = wl-paste --type image --watch cliphist store | ||
| # 日本語キー設定とか日本語入力とか | # 日本語キー設定とか日本語入力とか | ||
| input { | input { | ||
| 行 147: | 行 170: | ||
| bind = $mainMod, B, exec, $browser | bind = $mainMod, B, exec, $browser | ||
| bind = $mainMod, R, exec, wofi --show drun | bind = $mainMod, R, exec, wofi --show drun | ||
| + | bind = $mainMod, F, fullscreen, 0 # normal fullscreen | ||
| + | bind = $mainMod SHIFT, F, fullscreen, 1 # maximize fullscreen (statusbar etc saved) | ||
| + | bind = $mainMod SHIFT, S, exec, grim -g " | ||
| + | bind = $mainMod SHIFT, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy | ||
| + | bind = $mainMod LCTRL, V, exec, cliphist wipe | ||
| # フォーカス移動 | # フォーカス移動 | ||
| 行 158: | 行 186: | ||
| bind = $mainMod, 2, workspace, 2 | bind = $mainMod, 2, workspace, 2 | ||
| bind = $mainMod, 3, workspace, 3 | bind = $mainMod, 3, workspace, 3 | ||
| + | bind = $mainMod, 4, workspace, 4 | ||
| + | bind = $mainMod, 5, workspace, 5 | ||
| + | bind = $mainMod, 6, workspace, 6 | ||
| + | bind = $mainMod, 7, workspace, 7 | ||
| + | bind = $mainMod, 8, workspace, 8 | ||
| + | bind = $mainMod, 9, workspace, 9 | ||
| # ウィンドウを別のワークスペースに移動 | # ウィンドウを別のワークスペースに移動 | ||
| 行 163: | 行 197: | ||
| bind = $mainMod SHIFT, 2, movetoworkspace, | bind = $mainMod SHIFT, 2, movetoworkspace, | ||
| bind = $mainMod SHIFT, 3, movetoworkspace, | bind = $mainMod SHIFT, 3, movetoworkspace, | ||
| + | bind = $mainMod SHIFT, 4, movetoworkspace, | ||
| + | bind = $mainMod SHIFT, 5, movetoworkspace, | ||
| + | bind = $mainMod SHIFT, 6, movetoworkspace, | ||
| + | bind = $mainMod SHIFT, 7, movetoworkspace, | ||
| + | bind = $mainMod SHIFT, 8, movetoworkspace, | ||
| + | bind = $mainMod SHIFT, 9, movetoworkspace, | ||
| # マウス操作 (272: | # マウス操作 (272: | ||
| 行 172: | 行 212: | ||
| - | + | ===== Foot (ターミナル) | |
| - | ===== WayBarの改造 ===== | + | |
| <code bash> | <code bash> | ||
| - | user$ mkdir -p ~/.config/waybar | + | user$ mkdir -p ~/.config/foot; cp /etc/xdg/foot/foot.ini ~/.config/foot/foot.ini |
| - | + | user$ nano ~/.config/foot/foot.ini | |
| - | user$ cp /etc/xdg/waybar/config.jsonc ~/.config/waybar/ | + | |
| - | user$ cp / | + | |
| - | user$ nano ~/.config/waybar/config.jsonc | + | |
| </ | </ | ||
| - | hyprpanel (AUR)にのせかえたほうがらくかも。waybar の起動部分を以下実行後にhyprpanelに差し替える。ただし非常にビルドに時間がかかる。 | + | 書き足すところ |
| - | < | + | < |
| - | user$ yay -S --needed ags-hyprpanel-git | + | [colors-dark] |
| + | alpha=0.85 | ||
| + | |||
| + | [main] | ||
| + | font=monospace: | ||
| + | pad=4x4 | ||
| + | dpi-aware=yes | ||
| </ | </ | ||
| + | |||
| + | ===== Waybar (状態表示の帯) の改造 ===== | ||
| + | |||
| + | [[waybar|Waybar カスタマイズ / Hyprland on ArchLinux]] を参照。 | ||