Is it possible to have a different image on Screensaver from background wallpaper? [solved]

Questions about applications and software
Forum rules
Before you post please read how to get help
linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Is it possible to have a different image on Screensaver from background wallpaper? [solved]

Post by linuxheid » Sun Oct 20, 2019 12:49 am

Hi folks,

I have unsuccessfully been trying to configure screensaver to display a different image to the one set as background wallpaper. Is anyone able please to guide me on a means to be able to achieve what I seek to do?

This is obviously only a cosmetic question so not the end of the world. Any help though of course is still appreciated.
Last edited by linuxheid on Sun Oct 27, 2019 4:29 am, edited 1 time in total.
Linux Mint 19.2 Cinnamon 64 bit

User avatar
Spearmint2
Level 16
Level 16
Posts: 6876
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by Spearmint2 » Sun Oct 20, 2019 2:27 am

Code: Select all

mate-screensaver-preferences
It's also in the Menu. Pick what you want.

You can add pictures or xml file like the Cosmos to cycle through images, check here.

Code: Select all

cd /usr/share/backgrounds
In the Appearances area, you can add images of your choice to backgrounds.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
smurphos
Level 13
Level 13
Posts: 4560
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by smurphos » Sun Oct 20, 2019 3:12 am

Spearmint2 wrote:
Sun Oct 20, 2019 2:27 am

Code: Select all

mate-screensaver-preferences
What makes you think the OP is using MATE? The posting history indicates he's a Cinnamon user.

@linuxheld - if you are indeed using Cinnamon see https://github.com/smurphos/nemo_action ... -slideshow for a script to facilitate having a different lock screen / screensaver background or a slideshow of backgrounds for the lock screen / screensaver on Cinnamon.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Sun Oct 20, 2019 5:58 am

Spearmint2 wrote:
Sun Oct 20, 2019 2:27 am

Code: Select all

mate-screensaver-preferences
It's also in the Menu. Pick what you want.

You can add pictures or xml file like the Cosmos to cycle through images, check here.

Code: Select all

cd /usr/share/backgrounds
In the Appearances area, you can add images of your choice to backgrounds.
Hi Spearmint2,

Please accept my apologies for the ambiguities of my question. As smurphos has observed, I am on Cinnamon. To try to learn from this error I have made, I have now added a signature to my profile that clarifies the Linux version I am on. Again I apologise for the lack of clarity in the post you were kind enough to reply to.
Linux Mint 19.2 Cinnamon 64 bit

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Sun Oct 20, 2019 6:20 am

smurphos wrote:
Sun Oct 20, 2019 3:12 am
Spearmint2 wrote:
Sun Oct 20, 2019 2:27 am

Code: Select all

mate-screensaver-preferences
What makes you think the OP is using MATE? The posting history indicates he's a Cinnamon user.

@linuxheld - if you are indeed using Cinnamon see https://github.com/smurphos/nemo_action ... -slideshow for a script to facilitate having a different lock screen / screensaver background or a slideshow of backgrounds for the lock screen / screensaver on Cinnamon.
Thanks smurphos for your response,

This is the instructions I am trying to have a go at following in your weblink (I confess I've no idea what I'm doing):

=========================
Nemo Actions
Nemo actions add additional context menu items to the right click menu in the Nemo file manager and on the Cinnamon desktop.

An action can be added to Nemo by saving it's definition file with the file extension .nemo_action in ~/.local/share/nemo/actions

Some actions in this repo also require an associated shell script. These should be saved in ~/.local/share/nemo/actions/scripts and be made executable

Nemo Action installation
First clone this repo

git clone https://github.com/smurphos/nemo_action ... cripts.git

Having cloned the repo you can either install all of the actions using the commands below or refer to the index of actions to install individual actions.

To install all of the nemo actions

cp -rv ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/ ~/.local/share/nemo

Install other dependencies used by the actions

apt install zenity xdotool wmctrl gprename mediainfo-gui shellcheck searchmonkey tree imagemagick

Either apt install xplayer or apt install ffmpeg ffmpegthumbnailer

Open Nemo > Preferences > Plugins and review any actions you wish to disable.

Nemo Actions Index
Desktop context menu actions
Close windows actions.
A set of two actions and an associated shell script to allow the user to gracefully close all open windows on the current workspace or all workspaces via right click on the desktop.

close_windows_in_workspace.nemo_action

close_all_windows.nemo_action

close_windows.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/close_windows_in_workspace.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/close_all_windows.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/close_windows.sh ~/.local/share/nemo/actions/scripts

apt install xdotool wmctrl

Workspace management actions
A set of six actions to allow easy management of workspaces from the desktop context menu.

new-workspace.nemo_action

delete-workspace.nemo_action

previous_workspace.nemo_action

next_workspace.nemo_action

workspace_overview.nemo_action

window_overview.nemo_action

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/new-workspace.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/delete-workspace.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/previous_workspace.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/next_workspace.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/workspace_overview.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/window_overview.nemo_action ~/.local/share/nemo/actions

apt install xdotool

Background slide-show actions
An action to quickly toggle the desktop background slide-show, along with an action to select the next wallpaper when the slide-show is active.

toggle_slideshow.nemo_action

next-wallpaper.nemo_action

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/toggle_slideshow.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/next-wallpaper.nemo_action ~/.local/share/nemo/actions

Session management actions
The first two actions give quick access from the desktop context menu to the shutdown and logoff session dialogues.

session_menu_logout.nemo_action

session_menu_poweroff.nemo_action

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_menu_logout.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_menu_poweroff.nemo_action ~/.local/share/nemo/actions

These five actions immediately invoke the requested action.

session_reboot.nemo_action

session_shutdown.nemo_action

session_suspend.nemo_action

session_lock.nemo_action

session_logout.nemo_action

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_reboot.nemo_action~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_shutdown.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_suspend.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_lock.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_logout.nemo_action ~/.local/share/nemo/actions

General Actions
Edit as other user actions
These actions allow you to open text files with a password prompt for elevated privileges if necessary from a regular instance of Nemo. They will all open the file with the specified text-editor using sudoedit to elevate privileges as the owner of the file in question when necessary. The could be root or another user on the system.

Three versions are supplied, using the CLI text editor Nano, Linux Mint's default GUI text editor Xed and finally the GUI text editor Geany. If you have a different preferred text editor the actions and scripts can easily be modified to suit your needs. The actions invoking a GUI text editor require zenity.

nano_sudoedit.nemo_action

nano_sudoedit_check.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/nano_sudoedit.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/nano_sudoedit_check.sh ~/.local/share/nemo/actions/scripts

xed_sudoedit.nemo_action

xed_sudoedit_check.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/xed_sudoedit.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/xed_sudoedit_check.sh ~/.local/share/nemo/actions/scripts

apt install zenity

geany_sudoedit.nemo_action

geany_sudoedit_check.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/geany_sudoedit.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/geany_sudoedit_check.sh ~/.local/share/nemo/actions/scripts

apt install zenity

File actions as admin
These actions and their associated shell scripts allow the user to undertake a range of file management activities with elevated privileges if needed from a regular instance of Nemo.

They will all request password authentication if elevated privileges are necessary to complete the action.

All require zenity.

Copy to (Admin)
Supports single and multiple selections.

copy_to_admin.nemo_action

copy_to_admin.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/copy_to_admin.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/copy_to_admin.sh ~/.local/share/nemo/actions/scripts

apt install zenity

Move to (Admin)
Supports single and multiple selections

move_to_admin.nemo_action

move_to_admin.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/move_to_admin.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/move_to_admin.sh ~/.local/share/nemo/actions/scripts

apt install zenity

Creating links (Admin)
Supports single selections only.

create_link_in_target.nemo_action

create_link_in_target.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_link_in_target.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/create_link_in_target.sh ~/.local/share/nemo/actions/scripts

apt install zenity

Create Directory (Admin)
This action has two nemo_action files, one for right-click on a directory, and one for right-click on empty space.

create_dir_admin.nemo_action

create_dir_admin_background.nemo_action

create_dir_admin.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_dir_admin.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_dir_admin_background.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/create_dir_admin.sh ~/.local/share/nemo/actions/scripts

apt install zenity

Create File (Admin)
This action has two nemo_action files, one for right-click on a directory, and one for right-click on empty space.

create_file_admin.nemo_action

create_file_admin_background.nemo_action

create_file_admin.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_file_admin.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_file_admin_background.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/create_file_admin.sh ~/.local/share/nemo/actions/scripts

apt install zenity

Delete (Admin)
Supports single and multiple selections.

delete_admin.nemo_action

delete_admin.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/delete_admin.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/delete_admin.sh ~/.local/share/nemo/actions/scripts

apt install zenity

Rename (Admin)
Supports single selections only.

rename_admin.nemo_action

rename_admin.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/rename_admin.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/rename_admin.sh ~/.local/share/nemo/actions/scripts

apt install zenity

Disk Usage action
Select single or multiple files / directories to be presented with a zenity window showing the total disk usage of the selection. Based on an action by Linux Mint forum member sadhu

disk_usage.nemo_action

disk_usage.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/disk_usage.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/disk_usage.sh ~/.local/share/nemo/actions/scripts

apt install zenity

Add to desktop actions
Two actions to quickly create a desktop link to a selected directory. Add link to desktop creates a link desktop file with the link emblem on the icon. However these links function slightly differently from a regular symlink as when opened it will open the original target location. Add launcher to desktop will result in a plain folder without a link emblem. The function is otherwise identical to add link to desktop

Add link to desktop
add_link_to_desktop.nemo_action

add_link_to_desktop.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/add_link_to_desktop.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/add_link_to_desktop.sh ~/.local/share/nemo/actions/scripts

Add launcher to desktop
add_launcher_to_desktop.nemo_action

add_launcher_to_desktop.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/add_launcher_to_desktop.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/add_launcher_to_desktop.sh ~/.local/share/nemo/actions/scripts

Bulk rename actions
Both these actions open the bulk rename utility GPrename. One action is for a single folder selection to bulk rename files in that folder. The other is for multiple selections and opens GPrename in the parent folder.

bulk_rename_files.nemo_action

bulk_rename_folders.nemo_action

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/bulk_rename_files.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/bulk_rename_folders.nemo_action ~/.local/share/nemo/actions

apt install gprename

Apply custom emblems
This action allows the user to create and set custom emblems derived from image files, album art or video thumbnails to files and directories. For directories there is an option to use a random emblem generated from the directory contents and it can be run recursively on the selected directory and it's sub-directories.

Requires zenity, wmctrl, imagemagick and either xplayer or ffmpeg and ffmpegthumbnailer to be installed.

apply_custom_emblem.nemo_action

apply_custom_emblem.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/apply_custom_emblem.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/apply_custom_emblem.sh ~/.local/share/nemo/actions/scripts

apt install zenity wmctrl imagemagick

Either apt install xplayer or apt install ffmpeg ffmpegthumbnailer

Set folder view recursively
This action allows the user to set default folder view (list, compact or icon) and zoom level recursively to a directory and it's sub-directories.

Requires zenity, wmctrl, and gio. Mint users should be aware that gio is only available in Mint 19 and later.

set_folder_view_recursively.nemo_action

set_folder_view_recursively.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/set_folder_view_recursively.nemo_action ~/.local/share/nemo/actions

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/set_folder_view_recursively.sh ~/.local/share/nemo/actions/scripts

apt install zenity wmctrl

Media info
Shows information about media files in a separate window using mediainfo-gui - .

media-info.nemo_action

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/media-info.nemo_action ~/.local/share/nemo/actions

apt install mediainfo-gui

Search folders
Opens the selected folder in Searchmonkey for more fine-tuned file system searches including search by contents.

searchmonkey.nemo_action

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/searchmonkey.nemo_action ~/.local/share/nemo/actions

apt install searchmonkey

View a tree-view directory structure in your browser
An action and associated shell script to produce an html tree-view of the directory and file structure below the selected directory. Requires tree - apt install tree

print_tree.nemo_action

print_tree.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/print_tree.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/print_tree.sh ~/.local/share/nemo/actions/scripts

apt install tree

Copy a random selection of files from a directory
Ever wanted to grab a random selection of music files or pictures from a collection? This action is for you. Uses zenity to ask the user to confirm number of files and where to paste them.

get_random_file.nemo_action

get_random_files.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/get_random_file.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/get_random_files.sh ~/.local/share/nemo/actions/scripts

apt install zenity

Toggle checked emblem
An action and associated shell script to quickly add or remove a ✓ emblem to the file/folder.

toggle_checked.nemo_action

toggle_checked.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/toggle_checked.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/toggle_checked.sh ~/.local/share/nemo/actions/scripts

Update a files modification date
touch_file.nemo_action

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/touch_file.nemo_action ~/.local/share/nemo/actions

Check a shell script for errors
This action and associated shell script will check your shell scripts for errors with shellcheck. Scripts with no issues will be marked with a checked emblem, scripts with warnings will be marked with a warning emblem and the shellcheck output along with the shell script itself will be opened in a text editor for review.

shellcheck.nemo_action

shellcheck.sh

To install after cloning repo

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/toggle_checked.nemo_action ~/.local/share/nemo/actions

mkdir ~/.local/share/nemo/actions/scripts

cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/scripts/toggle_checked.sh ~/.local/share/nemo/actions/scripts

apt install shellcheck

Cinnamon Scripts
This is a small selection of feature scripts that add new features or improve existing features for the Cinnamon desktop.

Cinnamon Scripts Installation
First clone this repo if you haven't already.

git clone https://github.com/smurphos/nemo_action ... cripts.git

Having cloned the repo you can either install all of the scripts using the commands below or refer to the index of scripts to install individual scripts.

To install all of the cinnamon scripts

cp -rv ./nemo_actions_and_cinnamon_scripts/.local/bin/ ~/.local

sudo cp -r ./nemo_actions_and_cinnamon_scripts/opt/login_screen_random_background.sh /opt

To install autostart entries for relevant scripts

cp -rv ./nemo_actions_and_cinnamon_scripts/.config/autostart/ ~/.config

Install dependencies required by the scripts

apt install zenity xdotool wmctrl

See the scripts index for any other script specific setup recommendations.

Log off and back on.

Cinnamon Scripts Index
Lock Screen Slideshow
This script adds a user configurable desktop background slideshow function to the native Cinnamon screensaver/screen locker. It is intended to be run on user login as a startup application. Requires qdbus to be installed.

lock_screen_slideshow.sh

To install after cloning repo

mkdir ~/.local/bin

cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/lock_screen_slideshow.sh ~/.local/bin

cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/lock_screen_slideshow.desktop ~/.config/autostart

apt install qdbus

Optionally review the script to amend end user editable variables to suit your preferences.

xdg-open ~/.local/bin/lock_screen_slideshow.sh

Logout and log back in.

Login Screen Random Background
This script facilitates the user being presented with a random background on the login screen. It is compatible with any Mint edition using Slick-Greeter and LightDM, not just Cinnamon. It is intended to be run from the root crontab.

login_screen_random_background.sh

To install after cloning repo

sudo cp -r ./nemo_actions_and_cinnamon_scripts/opt/login_screen_random_background.sh /opt

Optionally review the script to amend end user editable variables to suit your preferences.

sudoedit /opt/login_screen_random_background.sh

Login Screen Random Background is intended to be run from the root crontab. To set up run

sudo crontab -e

In the CLI text editor that opens add the following lines to the bottom of the file. Ctrl-O, Enter, Ctrl-X to save the new crontab entries. This will run the script on boot and every half an hour.

@reboot /opt/login_screen_random_background.sh
0,30 * * * * /opt/login_screen_random_background.sh
Workspace Background Switcher
This script allows the user to different backgrounds for each Cinnamon workspace. It is intended to be run on user login as a startup application.

workspace_background_switcher.sh

To install after cloning repo

mkdir ~/.local/bin

cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/workspace_background_switcher.sh ~/.local/bin

cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/workspace_background_switcher.desktop ~/.config/autostart

Optionally review the script to amend end user editable variables to suit your preferences.

xdg-open ~/.local/bin/workspace_background_switcher.sh

Opacify Windows
This script allows the user to set default opacity levels for open windows based on the window status and type. For example unfocused windows can be translucent whilst focused windows are opaque. The effect is independent of the users theme and can be used with any GTK theme. It is intended to be run on user login as a startup application. Requires xdotool and wmctrl - apt install xdotool wmctrl

opacify_windows.sh

To install after cloning repo

mkdir ~/.local/bin

cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/opacify_windows.sh ~/.local/bin

cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/opacify_windows.desktop ~/.config/autostart

apt install xdotool wmctrl

Optionally review the script to amend end user editable variables to suit your preferences.

xdg-open ~/.local/bin/opacify_windows.sh

Battery Event Warnings
This script uses zenity - apt install zenity to open a warning window on battery low and critically low events. This can be helpful if gaming or watching full screen video whilst running on battery as the zenity window will demand attention. It is intended to be run on user login as a startup application. Please note the script modifies Cinnamon's default thresholds for Low & Critical battery events and actions. Please review the script if you want to set these thresholds to your preference.

battery_mon.sh

To install after cloning repo

mkdir ~/.local/bin

cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/battery_mon.sh ~/.local/bin

cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/battery_mon.desktop ~/.config/autostart

apt install zenity

Optionally review the script to amend end user editable variables to suit your preferences.

xdg-open ~/.local/bin/battery_mon.sh

Miscellaneous tweaks
GTK over-ride for Cinnamon
This small gtk.css file over-rides is intended to improve visibility of desktop icon labels and screen-saver / screen-locker text on light coloured backgrounds. It also increases the width of scroll bars in GTK3 apps and allows the scrollbars size to vary with changes in text scaling factor.

gtk.css

Installation
First clone this repo if you haven't already.

git clone https://github.com/smurphos/nemo_action ... cripts.git

To install the gtk.css over-ride file

cp -rv ./nemo_actions_and_cinnamon_scripts/.config/gtk-3.0/ ~/.config

Log off and back on.
==============================

This is a screenshot of how far I got:
nemo actions.png
If you are able to help me take it forward I am of course grateful. My apologies for the innocence of my Linux skill level.
Linux Mint 19.2 Cinnamon 64 bit

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Sun Oct 20, 2019 6:23 am

Spearmint2 wrote:
Sun Oct 20, 2019 2:27 am

Code: Select all

mate-screensaver-preferences
It's also in the Menu. Pick what you want.

You can add pictures or xml file like the Cosmos to cycle through images, check here.

Code: Select all

cd /usr/share/backgrounds
In the Appearances area, you can add images of your choice to backgrounds.
Hi again Spearmint2,

To clarify further in case required:

* I am able to deploy a wallpaper background without issue
* What I am seeking to achieve is to have 2 different images deployed at the same time on the wallpaper and screensaver

My apols if that was already clear.
Linux Mint 19.2 Cinnamon 64 bit

User avatar
smurphos
Level 13
Level 13
Posts: 4560
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by smurphos » Sun Oct 20, 2019 6:29 am

So in this order

Installs git (I need to add that to the intructions)

Code: Select all

apt install git
then

Clone the repo to your hardrive

Code: Select all

git clone https://github.com/smurphos/nemo_actions_and_cinnamon_scripts.git
then

Create a local directory for executable scripts

Code: Select all

mkdir ~/.local/bin
then

Copy the script to the directory

Code: Select all

cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/lock_screen_slideshow.sh ~/.local/bin
then

Copy the autostart entry to your autostarts folder

Code: Select all

cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/lock_screen_slideshow.desktop ~/.config/autostart
then

Install the dependency qdbus - this package allows the script to tell when the screensaver / lock screen kicks in

Code: Select all

apt install qdbus
then

Open the script in a text editor to make any changes for your preferences.

Code: Select all

xdg-open ~/.local/bin/lock_screen_slideshow.sh
The bits you might want to change are the variable assignments at the start of the script. Out of the box the script will be in slideshow mode cycling through the default backgrounds provided by Mint. Once set up to your preferences save and exit the text editor.

Code: Select all

# These variables are intended to be set by the end user.

# Set SLIDESHOW to true if you want a lock-screen / screensaver slideshow, false if you want a static image
SLIDESHOW=true

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg"

# Set SLIDESHOW_DIR to a directory of your choice
# This directory and it's sub-directorys will be searched for images
# for display in a random order in slideshow mode
SLIDESHOW_DIR="/usr/share/backgrounds"

# INTERVAL is the time time in seconds between background transitions in slideshow mode
INTERVAL=10
Log off Cinnamon and Log back on. All being well next time the screensaver kicks in or you lock the screen you should see the background change.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Sun Oct 20, 2019 8:16 am

smurphos wrote:
Sun Oct 20, 2019 6:29 am
So in this order

Installs git (I need to add that to the intructions)

Code: Select all

apt install git
then

Clone the repo to your hardrive

Code: Select all

git clone https://github.com/smurphos/nemo_actions_and_cinnamon_scripts.git
then

Create a local directory for executable scripts

Code: Select all

mkdir ~/.local/bin
then

Copy the script to the directory

Code: Select all

cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/lock_screen_slideshow.sh ~/.local/bin
then

Copy the autostart entry to your autostarts folder

Code: Select all

cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/lock_screen_slideshow.desktop ~/.config/autostart
then

Install the dependency qdbus - this package allows the script to tell when the screensaver / lock screen kicks in

Code: Select all

apt install qdbus
then

Open the script in a text editor to make any changes for your preferences.

Code: Select all

xdg-open ~/.local/bin/lock_screen_slideshow.sh
The bits you might want to change are the variable assignments at the start of the script. Out of the box the script will be in slideshow mode cycling through the default backgrounds provided by Mint. Once set up to your preferences save and exit the text editor.

Code: Select all

# These variables are intended to be set by the end user.

# Set SLIDESHOW to true if you want a lock-screen / screensaver slideshow, false if you want a static image
SLIDESHOW=true

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg"

# Set SLIDESHOW_DIR to a directory of your choice
# This directory and it's sub-directorys will be searched for images
# for display in a random order in slideshow mode
SLIDESHOW_DIR="/usr/share/backgrounds"

# INTERVAL is the time time in seconds between background transitions in slideshow mode
INTERVAL=10
Log off Cinnamon and Log back on. All being well next time the screensaver kicks in or you lock the screen you should see the background change.
Hi smurphos,

I've actioned all the steps you listed. I didn't see any error messages being output. In the file you suggested editing, I set the flag to "false" so the screensaver is static rather than presenting a slideshow. The part I'm not unable to figure out is this; how do I set the pic to be the screensaver image?
Linux Mint 19.2 Cinnamon 64 bit

User avatar
smurphos
Level 13
Level 13
Posts: 4560
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by smurphos » Mon Oct 21, 2019 12:44 am

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg"
You need to amend the STATIC_BACKGROUND variable to the full path to your image of choice.

For example if I wanted to use the image I've got selected in the File Manager screenshot below it would be

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/home/steve/Pictures/Wallpapers/Desktop/Personal/IMG_20190908_175729_428.jpg"
Image

You can also get the full paths of files in a directory by right clicking on a directory in the file manager, choosing open in terminal and running the command

Code: Select all

ls -d $PWD/*
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Mon Oct 21, 2019 3:54 am

smurphos wrote:
Mon Oct 21, 2019 12:44 am

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg"
You need to amend the STATIC_BACKGROUND variable to the full path to your image of choice.

For example if I wanted to use the image I've got selected in the File Manager screenshot below it would be

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/home/steve/Pictures/Wallpapers/Desktop/Personal/IMG_20190908_175729_428.jpg"
Image

You can also get the full paths of files in a directory by right clicking on a directory in the file manager, choosing open in terminal and running the command

Code: Select all

ls -d $PWD/*
Thank you Smurphos,

I'll have a try at what you suggest.

Another point if I may. I still have here another PC I intend to give to a friend across the world next time I know someone flying to that country prepared to be courier. In playing around with backgrounds and screensavers, I like the idea of setting him with a slide show. Is there a way I can specific a particular folder to have complete control over the images that appear in the slideshow?
Linux Mint 19.2 Cinnamon 64 bit

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Mon Oct 21, 2019 3:59 am

smurphos wrote:
Mon Oct 21, 2019 12:44 am

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg"
You need to amend the STATIC_BACKGROUND variable to the full path to your image of choice.

For example if I wanted to use the image I've got selected in the File Manager screenshot below it would be

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/home/steve/Pictures/Wallpapers/Desktop/Personal/IMG_20190908_175729_428.jpg"
Image

You can also get the full paths of files in a directory by right clicking on a directory in the file manager, choosing open in terminal and running the command

Code: Select all

ls -d $PWD/*

Hi again Smurphos,

Please ignore the above. I'm in the file you sent with the config parameters for this stuff.I believe I see what I need to change for this. I'm going to have a bash at tackling this.

The force is strong with you young Jedi. And that is rubbing off on me a little...
Linux Mint 19.2 Cinnamon 64 bit

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Mon Oct 21, 2019 4:22 am

linuxheid wrote:
Mon Oct 21, 2019 3:59 am
smurphos wrote:
Mon Oct 21, 2019 12:44 am

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg"
You need to amend the STATIC_BACKGROUND variable to the full path to your image of choice.

For example if I wanted to use the image I've got selected in the File Manager screenshot below it would be

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/home/steve/Pictures/Wallpapers/Desktop/Personal/IMG_20190908_175729_428.jpg"
Image

You can also get the full paths of files in a directory by right clicking on a directory in the file manager, choosing open in terminal and running the command

Code: Select all

ls -d $PWD/*

Hi again Smurphos,

Please ignore the above. I'm in the file you sent with the config parameters for this stuff.I believe I see what I need to change for this. I'm going to have a bash at tackling this.

The force is strong with you young Jedi. And that is rubbing off on me a little...
Hi again smurphos,

I've edited that file to change the path to the directory where the pics are that I'd like in the slideshow. Your logic so far seems to work brilliantly.

Can I ask; is it possible to have the slideshow display images sequentially rather than randomly?

Edit: I seem to have just made an error. I just 2 parameters:

* Interval to 3 instead of 10
* I changed the wallpaper background image to a pic that isn't in the folder I am using for the slideshow

After rebooting, the image on the screen saver is the static image that is also on the background wallpaper. Is there a way around that so I have a static wallpaper background completely unrelated to a slideshow on the screensaver?
Linux Mint 19.2 Cinnamon 64 bit

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Mon Oct 21, 2019 12:14 pm

smurphos wrote:
Mon Oct 21, 2019 12:44 am

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg"
You need to amend the STATIC_BACKGROUND variable to the full path to your image of choice.

For example if I wanted to use the image I've got selected in the File Manager screenshot below it would be

Code: Select all

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/home/steve/Pictures/Wallpapers/Desktop/Personal/IMG_20190908_175729_428.jpg"
Image

You can also get the full paths of files in a directory by right clicking on a directory in the file manager, choosing open in terminal and running the command

Code: Select all

ls -d $PWD/*
Hi again smurphos,

I repeated the install procedure that you gave me to follow previously. It seems to be working fine, namely static wallpaper background with completely different images in a screensaver slideshow.

Can I this ask please:

a) Is it possible for the slideshow to run sequentially?
b) If not, is it possible for the randon slideshow to run through all the images in the folder before it moves on to the next cycle of the slideshow?
Linux Mint 19.2 Cinnamon 64 bit

User avatar
smurphos
Level 13
Level 13
Posts: 4560
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by smurphos » Mon Oct 21, 2019 12:34 pm

linuxheid wrote:
Mon Oct 21, 2019 12:14 pm
a) Is it possible for the slideshow to run sequentially?
Hi - glad you got it up and running.

That will need a bit of a rewrite of the script but is doable. Give me a day or four to tweak and test (my daily Mint time is quite limited, and my 'would like to do' list long) and I'll post back when available. I'll try and make it as another end-user option.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Tue Oct 22, 2019 4:54 am

smurphos wrote:
Mon Oct 21, 2019 12:34 pm
linuxheid wrote:
Mon Oct 21, 2019 12:14 pm
a) Is it possible for the slideshow to run sequentially?
Hi - glad you got it up and running.

That will need a bit of a rewrite of the script but is doable. Give me a day or four to tweak and test (my daily Mint time is quite limited, and my 'would like to do' list long) and I'll post back when available. I'll try and make it as another end-user option.
Hi smurphos,

Your coding seems to be working a treat. If you do put an enhancement in there I'd be a willing tester for you. I of course though understand you have other priorities in life. Hence if that means you are unable to schedule time to enhance what you have already done, I am still more than grateful for what you've done. You're great.
Linux Mint 19.2 Cinnamon 64 bit

User avatar
smurphos
Level 13
Level 13
Posts: 4560
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by smurphos » Sat Oct 26, 2019 5:40 am

linuxheid wrote:
Tue Oct 22, 2019 4:54 am
Your coding seems to be working a treat. If you do put an enhancement in there I'd be a willing tester for you.
Well I'm always happy with feedback as it means I've got some users. :)

Some time has been found and the updated script is now live on my github

https://github.com/smurphos/nemo_action ... ideshow.sh

It all appears to work in testing.

So the user editable options at the start of the script now includes SLIDESHOW_RANDOM which can be true or false

Code: Select all

# These variables are intended to be set by the end user.

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg"

# Set SLIDESHOW to true if you want a lock-screen / screensaver slideshow, false if you want a static image
SLIDESHOW=true

# Set SLIDESHOW_DIR to a directory of your choice
# This directory and it's sub-directorys will be searched for images
# for display in a random order in slideshow mode
SLIDESHOW_DIR="/usr/share/backgrounds"

# Set SLIDESHOW_RANDOM to true if you want the display of images in slideshow mode to be randomised, false if not
SLIDESHOW_RANDOM=true

# INTERVAL is the time time in seconds between background transitions in slideshow mode
INTERVAL=10
To update you could simply visit the link to the updated script and copy and paste the script as a whole over your installed copy and then update the variables

The 'proper way' would be to update your cloned copy of the repo though.

In your file manager navigate to the nemo_actions_and_cinnamon_scripts folder created when you first cloned the repo. Once in the folder, right click any empty space > open in terminal

Once in the terminal run the command below which will sync the folder contents to the github repo.

Code: Select all

git pull origin
Then reinstall the script from your local copy.

Code: Select all

cd ..; cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/lock_screen_slideshow.sh ~/.local/bin
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Sun Oct 27, 2019 12:42 am

smurphos wrote:
Sat Oct 26, 2019 5:40 am
linuxheid wrote:
Tue Oct 22, 2019 4:54 am
Your coding seems to be working a treat. If you do put an enhancement in there I'd be a willing tester for you.
Well I'm always happy with feedback as it means I've got some users. :)

Some time has been found and the updated script is now live on my github

https://github.com/smurphos/nemo_action ... ideshow.sh

It all appears to work in testing.

So the user editable options at the start of the script now includes SLIDESHOW_RANDOM which can be true or false

Code: Select all

# These variables are intended to be set by the end user.

# Set STATIC_BACKGROUND to the path to your image of choice for static image mode
STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg"

# Set SLIDESHOW to true if you want a lock-screen / screensaver slideshow, false if you want a static image
SLIDESHOW=true

# Set SLIDESHOW_DIR to a directory of your choice
# This directory and it's sub-directorys will be searched for images
# for display in a random order in slideshow mode
SLIDESHOW_DIR="/usr/share/backgrounds"

# Set SLIDESHOW_RANDOM to true if you want the display of images in slideshow mode to be randomised, false if not
SLIDESHOW_RANDOM=true

# INTERVAL is the time time in seconds between background transitions in slideshow mode
INTERVAL=10
To update you could simply visit the link to the updated script and copy and paste the script as a whole over your installed copy and then update the variables

The 'proper way' would be to update your cloned copy of the repo though.

In your file manager navigate to the nemo_actions_and_cinnamon_scripts folder created when you first cloned the repo. Once in the folder, right click any empty space > open in terminal

Once in the terminal run the command below which will sync the folder contents to the github repo.

Code: Select all

git pull origin
Then reinstall the script from your local copy.

Code: Select all

cd ..; cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/lock_screen_slideshow.sh ~/.local/bin
Hi smurphos,

My thanks for your obviously constructive effort with this. I've done the reinstall using the instructions you provided. That reinstall appeared to go simply enough without issue. I have then set the parameter in the .sh file to set the slideshow so that the files appear sequentially rather than randomly. This is the details and results of subsequent testing:

* The folder I have set to contain the files for the slideshow contains 30 images
* Every time without exception when the slideshow is triggered, the slideshow cycles through the images starting with the file that is 14th when listed by file name. In other words instead of displaying by file sequence:

01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

...the slideshow cycles through in this sequence:

14 01 02 03 04 05 06 07 08 09 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

01, 02, etc isn't the exact name of each file. I have used the syntax in the lines above in this message for intended simplicity of representing the file name sequence. In reality each file name begins with a year in 4 digit format followed by descriptive text in the file name.

To try to isolate the root cause of the issue I have taken the following steps

1) The file at position 26 was .png. I have re-saved that to be .jpg
2) 4 or 5 of the other files were .jpeg. I have renamed those also to be .jpg. Please note that the files at position 1 and 14 were already both jpg
3) Even after reboot these file type changes made no apparent difference to the results. Hence my current opinion is that the root cause of the issue is unrelated to file type since all 30 files are now .jpg
4) I then renamed the file that was at position 14 so that it moved to position 30 in the list of files by file name. After doing so, the files that were previously sequenced at positions 15 - 30 obviously all moved up one place in the sequence (e.g. the file at position 15 now became positioned at 14, etc). This has changed the sequence of the slideshow in that:

a) the file previously at position 14 and now listed 30th, instead of being displayed 1st in the slideshow now gets displayed 30th
b) Crucially, the file previously at position 15 now at position 14; This image newly positioned at 14th by file name (up from previously being positioned at 15), now gets shown 1st when the slideshow cycles through the images

It may be worth listing here that if I interrupt the slideshow to go back into my PC to do some activity, the next time the screensaver is triggered, the slideshow picks up at the position where the slideshow was previously interrupted. I don't see that as any kind of an issue. I am though listing that here to try to be complete in presenting diagnostic info. After rebooting the PC though, the slideshow always restarts afresh showing images by file type in the sequence I listed above, namely:

14 01 02 03 04 05 06 07 08 09 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

I only have access to 1 linuxmint PC for most of today and hence I am unable to test on the other PC I currently have. When I get home tonight, I can easily test on the other laptop I currently have.

Is this description typed with sufficient clarity for you to understand the symptoms I am experiencing?
Linux Mint 19.2 Cinnamon 64 bit

User avatar
smurphos
Level 13
Level 13
Posts: 4560
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by smurphos » Sun Oct 27, 2019 2:10 am

Hi,

Can you test this change which add's sorting by name to the find command? Just locate this code block in your installed copy of the script, amend, save and restart the script by running lock_screen_slideshow.sh & in terminal. Note there are two lines amended in the block

Current

Code: Select all

# Populate IMAGES array in non random slideshow mode
if ( $SLIDESHOW && ! $SLIDESHOW_RANDOM ); then
  INDEX=0
  IMAGES=()
  while IFS=  read -r -d $'\0'; do
    IMAGES+=("$REPLY")
  done < <(find "$SLIDESHOW_DIR" -iname '*.*p*g' -print0)
fi
New

Code: Select all

# Populate IMAGES array in non random slideshow mode
if ( $SLIDESHOW && ! $SLIDESHOW_RANDOM ); then
  INDEX=0
  IMAGES=()
  while IFS=  read -r -d $'\n'; do
    IMAGES+=("$REPLY")
  done < <(find "$SLIDESHOW_DIR" -iname '*.*p*g' | sort -n)
fi
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
smurphos
Level 13
Level 13
Posts: 4560
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by smurphos » Sun Oct 27, 2019 2:31 am

linuxheid wrote:
Sun Oct 27, 2019 12:42 am
It may be worth listing here that if I interrupt the slideshow to go back into my PC to do some activity, the next time the screensaver is triggered, the slideshow picks up at the position where the slideshow was previously interrupted. I don't see that as any kind of an issue.
That's by design...

As it stands in any one session, when the screensaver kicks in it will pick up where it left off.

If you log out or reboot on the next session it will reset to the start of the sequence the first time the screensaver kicks in. It wouldn't be hard to change this so the position is remembered between sessions. Thinking about it that is probably desirable for users with many 100s or 1000s of images in their sequence.

I'd appreciate your thoughts? I guess it makes sense to do number 3.

1) Should reset position on a new session.
2) Should remember position in a new session,
3) End user option to choose between 1 & 2....
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

linuxheid
Level 3
Level 3
Posts: 162
Joined: Wed Oct 24, 2018 3:31 am

Re: Is it possible to have a different image on Screensaver from background wallpaper?

Post by linuxheid » Sun Oct 27, 2019 3:05 am

smurphos wrote:
Sun Oct 27, 2019 2:31 am
linuxheid wrote:
Sun Oct 27, 2019 12:42 am
It may be worth listing here that if I interrupt the slideshow to go back into my PC to do some activity, the next time the screensaver is triggered, the slideshow picks up at the position where the slideshow was previously interrupted. I don't see that as any kind of an issue.
That's by design...

As it stands in any one session, when the screensaver kicks in it will pick up where it left off.

If you log out or reboot on the next session it will reset to the start of the sequence the first time the screensaver kicks in. It wouldn't be hard to change this so the position is remembered between sessions. Thinking about it that is probably desirable for users with many 100s or 1000s of images in their sequence.

I'd appreciate your thoughts? I guess it makes sense to do number 3.

1) Should reset position on a new session.
2) Should remember position in a new session,
3) End user option to choose between 1 & 2....
Hi smurphos,

My apologies in that my previous message appears to have been unclear. I include as much info as possible for completeness. In doing so, this seems to have fogged what I perceive as the only issue. Namely that every time after booting the laptop, the slideshow starts with image 14 instead of image 1. That is regardless of what the 14th image is when listed by file name. Is that something that can be tackled please?
Linux Mint 19.2 Cinnamon 64 bit

Post Reply

Return to “Software & Applications”