Слайд-шоу обоев без ручного вмешательства

У меня это не установлено, поэтому проверить не могу. Но в руководстве говорится, что вы должны указать идентификатор в первом столбце, и я не вижу его в вашей попытке. IP-адрес кластера можно найти в ceph.conf, или предполагается, что его можно разместить в поле DEVICE. Так что я ожидаю, что любой из них сработает:

Если IP находится вceph.conf

id=admin    /mnt/mycephfs   fuse.ceph name=admin,secretfile=/home/ec2-user/admin.secret,noatime    0       2

Если IP-адрес отсутствует в ceph.confили если вы хотите переопределить, то:

id=admin,m=10.1.1.138    /mnt/mycephfs   fuse.ceph name=admin,secretfile=/home/ec2-user/admin.secret,noatime    0       2

Учитывая идентификатор, отображаемый в поле DEVICE, я не знаю, должен ли он вообще быть в поле параметра.

0
24.12.2019, 05:23
1 ответ

Shotwell, возможно, не лучшая утилита для этого. Насколько я знаю, Ubuntu использует Xorg, поэтому мы можем использовать программу командной строки под названием feh.

Выдержка из справочной страницы(man feh):

feh is a mode-based image viewer. It is especially aimed at command line users who need a fast image viewer without huge GUI dependencies, though it can also be started by (graphical) file managers to view an image. By default (unless arguments or a filelist are specified) feh displays all files in the current directory.

Установка в системах на базе Debian -обычно выглядит следующим образом:

~# apt install feh

Чтобы установить обои, давайте еще раз посмотрим на справочную страницу.

feh can also be used as a background setter. Unless you pass the --no-fehbg option, it will write a script to set the current background to ~/.fehbg. So to have your back‐ ground restored every time you start X, you can add "sh ~/.fehbg &" to your X startup script (such as ~/.xinitrc). As of feh 2.13, this script is executable, so "~/.fehbg &" will work as well.

Далее на справочной странице:

--bg-center

Center the file on the background. If it is too small, it will be surrounded by a black border

--bg-fill

Like --bg-scale, but preserves aspect ratio by zooming the image until it fits. Either a horizontal or a vertical part of the image will be cut off

--bg-max

Like --bg-fill, but scale the image to the maximum size that fits the screen with black borders on one side.

--bg-scale

Fit the file into the background without repeating it, cutting off stuff or using borders. But the aspect ratio is not preserved either

--bg-tile Tile (repeat) the image in case it is too small for the screen

Таким образом, вы можете использовать это в каком-то повторяющемся скрипте:

(просто доказательство концепции, а не настоящее программирование)

#!/usr/bin/env python
import os
import time

files = [
        '1.jpg', // Perhaps you could have a listing of ls here, and parse that.
        '2.jpg',
        'file.jpg'
]
while True:
        for i in files:
                os.system('feh ' + files[i] + ' --bg-fill')
                time.sleep(120)

Я надеюсь, что это поможет указать вам правильное направление.

PS :Обратите внимание, что я являюсь пользователем i3и вот как я устанавливаю обои. Я надеюсь, что я мог помочь кому-то.

1
28.01.2020, 02:38

Теги

Похожие вопросы