昔買った壁紙写真集が出てきたので,これをubuntuで使おうと考え,gnomeでの壁紙変更方法を調査。
[smdn] Linux/Gnome/コマンドラインでの壁紙の変更
Linux/Gnome/コマンドラインでの壁紙の変更 ?
↑
gconftool-2 ?
コマンドラインから壁紙を変更する方法。 gconftool-2コマンドを使用することで設定を変更・取得することができる。 まずは壁紙ファイルの設定方法から。
gconftool-2 --type string --set "/desktop/gnome/background/picture_filename" ファイル名
続いて、壁紙の配置スタイルの設定方法。
gconftool-2 --type string --set "/desktop/gnome/background/picture_options" スタイル
ちなみに、次のスタイルを適用することができる。
* scaled(等幅サイズ変更)
* stretched(フルスクリーン)
* centered(中央に配置)
* wallpaper(サイズ均等、並べて表示)
設定を取得するには--setではなく--getオプションを使用する。
gconftool-2 --get "/desktop/gnome/background/picture_options
Leave a comment