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?

Hyprlandのバージョンをダウングレード(0.57.0 - 0.56.2)

0
Posted at

概要

Hyprlandは0.57以降、設定ファイルの形式がlua必須となりました。

  • 0.55より前: conf形式のみをサポート
  • 0.55〜0.56: conf形式とlua形式を両方サポート
  • 0.57: lua形式のみをサポート

凝った設定ファイルのカスタムをしている方で、まだ以降が完了していなかったり、誤ってHyprlandのバージョンをあげてしまったときのために、ダウングレード方法をまとめました。

ダウングレード手順(0.57.0 -> 0.56.2)

ダウングレード用の便利コマンドdowngradeを使用します。以下にインストール手順を示します。

sudo pacman -Sy downgrade

Hyprlandをダウングレードします。現在のバージョンは0.57.0です。

hyprland --version
# Hyprland 0.57.0 built from branch v0.57.0 at commit 0aa6745f705f2c4b0a5004eb019ef76e5bbdb426 clean (VERSION: bump to 0.57.0).
# Date: Wed Oct 28 10:37:05 2026
# Tag: v0.57.0, commits: 797
# ...

sudo downgrade hyprland

以下のようにバージョン一覧が出力されます。

...
 -  156)  hyprland    0.56.2      2  remote
 -  157)  hyprland    0.56.2      2  /var/cache/pacman/pkg  2026-09-01
 -  158)  hyprland    0.56.2      3  remote
 -  159)  hyprland    0.56.2      3  /var/cache/pacman/pkg  2026-09-04
 -  160)  hyprland    0.56.2      4  remote
 -  161)  hyprland    0.56.2      4  /var/cache/pacman/pkg  2026-09-30
 +  162)  hyprland    0.57.0      1  remote
 +  163)  hyprland    0.57.0      1  /var/cache/pacman/pkg  2026-10-29

0.56系の最終版0.56.2にダウングレードしてみます。
161)を選択します。

パッケージをロード...
警告: パッケージ hyprland のダウングレード (0.57.0-1 => 0.56.2-4)
依存関係を解決しています...
衝突するパッケージがないか確認しています...

パッケージ (1) hyprland-0.56.2-4

合計インストール容量:        64.02 MiB
最終的なアップグレード容量:  -1.29 MiB

:: インストールを行いますか? [Y/n]

以下の質問にyと答えると、今後、sudo pacman -Syでアップグレード候補にHyprlandが出現しなくなります。yと答えてみます。

add hyprland to IgnorePkg? [y/N] y

Hyprlandのバージョンを確認します。

hyprland --version
# Hyprland 0.56.2 built from branch v0.56.2 at commit efb50993780079460b0cbed1363e2166a2de1d9f clean ([gha] Nix: update inputs).
# Date: Wed Aug 5 14:13:21 2026
# Tag: v0.56.2, commits: 7661
# ...

バージョンが下がっています。デスクトップ環境に再ログインすることで、ダウングレードしたバージョン0.56.2で起動できました。

# Hyprlandを終了

# Hyprland v0.55 より前
hyprctl dispatch exit

# Hyprland v0.55 以降
hyprctl dispatch 'hl.dsp.exit()'

# もしくはshutdownコマンド
sudo pacman -Sy hyprshutdown
hyprshutdown

# その後、再ログインする

また、add hyprland to IgnorePkg?にyと答えたため/etc/pacman.confに追記されていることがわかります。option -> IgnorePkgの項目にhyprlandの記載が増えています。

less /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
IgnorePkg = hyprland
# ...

もとに戻す(0.56.2 -> 0.57.0)

/etc/pacman.confにIgnorePkg = hyprlandが追記されていた場合は消して、pacman updateすれば良いです。

sudo vim /etc/pacman.conf
# `option` -> `IgnorePkg`の項目で、`hyprland`の記載を削除

アップデートする。

sudo pacman -Syu hyprland

もしくは、downgradeを使用しても良いです。

sudo downgrade hyprland
# ...
# add hyprland to IgnorePkg? [y/N] N <- 今度はNで答える

おまけ

SSH越しにGUIアプリを起動する

移行作業中で壊れた設定ファイルを読み込んだ時や、中途半端に設定が適用された時など、デスクトップの操作ができなくなってしまうことがありました。そのため、そもそも別PCからsshで入って作業するようにしました。ただし、hyprctlコマンド実行時は以下のようにhyprland instanceを指定する必要がありました。

hyprctl instances
# 出力例
# instance xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_0123456789_0123456789:
#         time: 1793401234
#         pid: 123
#         wl socket: wayland-1

# 設定例
export HYPRLAND_INSTANCE_SIGNATURE ="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_0123456789_0123456789"

# jsonで出力すると便利です
export HYPRLAND_INSTANCE_SIGNATURE="$(hyprctl -j instances | jq -r '.[0].instance')"

# Hyprland v0.55 より前
hyprctl dispatch exec ghostty

# Hyprland v0.55 以降
hyprctl dispatch 'hl.dsp.exec_cmd("ghostty")'
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?