視差壁紙エンジンのlwp というものを試してみました.
動作環境はLinux, Windows です.Linux amd64 環境で試してみました.
lwp のREADME では / に展開するようにとなっていましたがあまりやりたくないのでとりあえずアドホックに動かしました.
$ wget https://github.com/jszczerbinsky/lwp/releases/download/1.5/lwp-linux-x86_64.zip (1)
$ unzip -l ./lwp-linux-x86_64.zip
Archive: ./lwp-linux-x86_64.zip
Length Date Time Name
--------- ---------- ----- ----
0 2023-02-19 07:42 etc/
661 2023-02-19 07:32 etc/default.cfg
1047 2023-02-22 23:42 etc/lwp.cfg
0 2023-02-11 05:41 usr/
0 2023-02-22 23:42 usr/bin/
30800 2023-02-22 23:42 usr/bin/lwp
0 2022-09-30 05:27 usr/share/
0 2022-09-30 05:27 usr/share/lwp/
1076 2023-02-22 23:42 usr/share/lwp/LICENSE
0 2022-09-30 05:27 usr/share/lwp/wallpapers/
0 2023-02-21 07:58 usr/share/lwp/wallpapers/test/
8294538 2023-02-22 23:42 usr/share/lwp/wallpapers/test/1.bmp
102 2023-02-22 04:16 usr/share/lwp/wallpapers/test/source
8294538 2023-02-22 23:42 usr/share/lwp/wallpapers/test/3.bmp
8294538 2023-02-22 23:42 usr/share/lwp/wallpapers/test/2.bmp
461 2023-02-22 23:42 usr/share/lwp/wallpapers/test/wallpaper.cfg
0 2023-02-11 05:41 usr/etc/
558 2023-02-11 05:41 usr/etc/default.cfg
--------- -------
24918319 18 files
$ mkdir lwp
$ cd lwp
$ unzip ../lwp-linux-x86_64.zip
$ usr/bin/lwp (2)
INFO: User config file not found, opening default config
ERROR: Default config file not found!
Segmentation fault
$ mkdir ~/.config/lwp (3)
$ install ./etc/lwp.cfg ~/.config/lwp/lwp.cfg (4)
$ xrandr | grep \* (5)
1920x1200 59.96*+
$ vi ~/.config/lwp/lwp.cfg (6)
$ diff -u etc/lwp.cfg ~/.config/lwp/lwp.cfg
--- etc/lwp.cfg 2023-02-22 23:42:43.000000000 +0900
+++ /home/matoken/.config/lwp/lwp.cfg 2023-02-27 03:31:49.160716609 +0900
@@ -25,11 +25,11 @@
monitor1_h=1080
# Absolute path to the wallpaper directory
-monitor1_wallpaper=/usr/share/lwp/wallpapers/test
+monitor1_wallpaper=./usr/share/lwp/wallpapers/test (7)
# Wallpaper size and position relative to Your monitor
# Wallpaper resolution ratio should be the same as in original image
monitor1_wallpaper_x=0
monitor1_wallpaper_y=0
monitor1_wallpaper_w=1920
-monitor1_wallpaper_h=1080
+monitor1_wallpaper_h=1200 (8)
$ usr/bin/lwp (9)- release からバイナリアーカイブを取得
- 展開して実行してみると設定ファイルが見当たらないらしい
- 設定ファイルディレクトリを作成
- 規定値の設定ファイルをコピー
- 解像度を確認,ここでは 1920×1200
- 設定ファイルを編集
- 壁紙のパスを修正
- 解像度を修正
- 実行すると壁紙が設定された
Android の壁紙のようで面白いです.ただ,手元の環境では縦サイズが足りません.壁紙の元サイズが 1920×1080 に対してPCの解像度が 1920×1200 なのでそのせいだと思います.
$ file usr/share/lwp/wallpapers/test/*.bmp usr/share/lwp/wallpapers/test/1.bmp: PC bitmap, Windows 98/2000 and newer format, 1920 x 1080 x 32, cbSize 8294538, bits offset 138 usr/share/lwp/wallpapers/test/2.bmp: PC bitmap, Windows 98/2000 and newer format, 1920 x 1080 x 32, cbSize 8294538, bits offset 138 usr/share/lwp/wallpapers/test/3.bmp: PC bitmap, Windows 98/2000 and newer format, 1920 x 1080 x 32, cbSize 8294538, bits offset 138
環境
$ dpkg-query -W libwayland-server0 gnome-shell gnome-shell 43.2-2 libwayland-server0:amd64 1.21.0-1 libwayland-server0:i386 1.21.0-1 $ lsb_release -a Distributor ID: Debian Description: Debian GNU/Linux bookworm/sid Release: n/a Codename: bookworm $ arch x86_64