tips:linux:arch:gui:desktop:hyprland:start

Hyprland on ArchLinux

  • 仮想PCでは3DアクセラレーションONにしないと起動すらしません。
    • VirtualBox では壁紙描写がうまくいかないなどの一部問題があります。
    • VMware Workstation では以下のおまじないを頭につけると動くものもあります
user$ LIBGL_ALWAYS_SOFTWARE=1 pavucontrol
user$ LIBGL_ALWAYS_SOFTWARE=1 alacritty
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 \
        fcitx5 fcitx5-mozc fcitx5-configtool fcitx5-gtk fcitx5-qt
user$ LC_ALL=C.UTF-8 xdg-user-dirs-update --force 
user$ sudo systemctl enable lightdm
  • パッケージ詳細
    • hyprland : 本体
    • xdg-desktop-portal-hyprland : なんやかんや?
    • lightdm* : ログイン周りの変更 (GUIでINするやつ)
    • xdg-user-dirs : Documentsとかの整備
    • foot : ターミナル (Wayland用)
    • thunar : ファイラ (Xfce4系)
    • wofi : ランチャ
    • waybar : ステータスバー
    • pipewire の行 : サウンドまわり
    • fcitx5 の行 : 日本語入力まわり
user$ mkdir -p ~/.config/wofi/ ; touch ~/.config/wofi/config; nano ~/.config/wofi/config
user$ mkdir -p ~/.config/hypr/;  nano ~/.config/hypr/hyprland.conf
# ~/.config/wofi/config
width=500
height=400
prompt=Search...
location=center
show=drun
allow_markup=true
no_actions=true
term=foot
matching=fuzzy
# This config is a STUB! This should never be generated.
# Use the default lua config from https://github.com/hyprwm/Hyprland/blob/main/example/hyprland.lua
 
autogenerated = 1
 
$mainMod = SUPER
$terminal = kitty
$fileManager = dolphin
$menu = hyprlauncher
 
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, $menu
$mainMod = SUPER
$terminal = foot
$fileManager = thunar
$browser = firefox
$menu = wofi
 
 
# ぱっと見みたいな
general {
    gaps_in = 5
    gaps_out = 10
    border_size = 2
}
 
animations {
    enabled = yes
 
    # ベジェ曲線を定義
    bezier = myBezier, 0.05, 0.9, 0.1, 1.05
 
    # アニメーションを定義
    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}
 
# 装飾設定
decoration {
    # 角の丸み
    rounding = 10
 
    # 透明度
    active_opacity = 1.0
    inactive_opacity = 0.9
 
    # ぼかし効果
    blur {
        enabled = true
        size = 8
        passes = 2
        new_optimizations = true
    }
 
    # 影
    shadow {
        enabled = true
        range = 20
        render_power = 3
        color = rgba(1a1a1aee)
    }
}
exec-once = sleep 5 && waybar
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
 
# 日本語キー設定とか日本語入力とか
input {
    kb_layout = jp
 
    sensitivity = 0
    accel_profile = flat #マウスカーソルの動き制御 (均等速度に変更する)
}
exec-once = fcitx5
env = GTK_IM_MODULE,fcitx
env = QT_IM_MODULE,fcitx
env = XMODIFIERS,@im=fcitx
 
# ショートカット類
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, B, exec, $browser
bind = $mainMod, R, exec, wofi --show drun
 
# フォーカス移動
bind = $mainMod, H, movefocus, l
bind = $mainMod, L, movefocus, r
bind = $mainMod, K, movefocus, u
bind = $mainMod, J, movefocus, d
 
# ワークスペース切り替え
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
 
# ウィンドウを別のワークスペースに移動
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
 
# マウス操作 (272:左クリック / 273:右クリック)
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
 
monitor=Virtual-1,1920x1080@60,auto,1    #virtualboxの場合。詳細は hyprctl monitors で確認。
user$ mkdir -p ~/.config/foot; cp /etc/xdg/foot/foot.ini ~/.config/foot/foot.ini
user$ nano ~/.config/foot/foot.ini

書き足すところ

[colors-dark]
alpha=0.85  #0.00~1.00
 
[main]
font=monospace:size=11.5
pad=4x4
dpi-aware=yes
  • tips/linux/arch/gui/desktop/hyprland/start.1779595962.txt.gz
  • 最終更新: 2026/05/24 13:12
  • by asaasa