{"id":17998367,"url":"https://github.com/primaryobjects/loginimagechanger","last_synced_at":"2025-10-31T05:52:07.826Z","repository":{"id":19865507,"uuid":"23128979","full_name":"primaryobjects/loginimagechanger","owner":"primaryobjects","description":"Login Image Changer for Linux Mint and Ubuntu lets you automatically change the login background each time your computer starts up.","archived":false,"fork":false,"pushed_at":"2014-08-25T01:02:39.000Z","size":1076,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T06:42:51.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/primaryobjects.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-19T23:21:05.000Z","updated_at":"2019-10-04T20:06:33.000Z","dependencies_parsed_at":"2022-08-25T23:31:17.516Z","dependency_job_id":null,"html_url":"https://github.com/primaryobjects/loginimagechanger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/primaryobjects/loginimagechanger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Floginimagechanger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Floginimagechanger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Floginimagechanger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Floginimagechanger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primaryobjects","download_url":"https://codeload.github.com/primaryobjects/loginimagechanger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Floginimagechanger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262850259,"owners_count":23374352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T21:24:58.108Z","updated_at":"2025-10-31T05:52:07.712Z","avatar_url":"https://github.com/primaryobjects.png","language":"Shell","readme":"Login Image Changer\n=========\n### for Linux Mint and Ubuntu\n\n\nLogin Image Changer lets you automatically change the login background each time your computer starts up. It selects a random image from a target folder and updates your theme's background image, giving you a fresh and exciting new image for your login screen each time!\n\n![Screenshot 1](https://raw.githubusercontent.com/primaryobjects/loginimagechanger/master/screenshots/login1-500x300.png)\n\n![Screenshot 2](https://raw.githubusercontent.com/primaryobjects/loginimagechanger/master/screenshots/login2-500x300.png)\n\n![Screenshot 3](https://raw.githubusercontent.com/primaryobjects/loginimagechanger/master/screenshots/login3-500x300.png)\n\nIt's as simple as this:\n\n- Run loginimage.sh.\n- Select a folder of images.\n- Select the background image for your current login theme.\n\nThat's it!\n\nInstall\n---\n\n1. Download [loginimage.sh](https://raw.githubusercontent.com/primaryobjects/loginimagechanger/master/loginimage.sh) and place it in a folder, such as ~/Documents/login-image-changer.\n\n ```sh\n cd ~/Documents/login-image-changer\n sudo bash loginimage.sh\n ```\n\n ![Initial setup screen](https://raw.githubusercontent.com/primaryobjects/loginimagechanger/master/screenshots/screenshot1.png)\n\n2. Select a folder of images.\n\n ![Select a folder of images](https://raw.githubusercontent.com/primaryobjects/loginimagechanger/master/screenshots/screenshot2.png)\n\n3. Select the background image of your currently installed login theme. This file will be overwritten by Login Image Changer each time your PC starts up. Hint: Login themes are accessible via the Linux \"Login Window\" app. GDM themes are located in /usr/share/mdm/themes, while HTML themes are located in /usr/share/mdm/html-themes. You must select the background image for your *currently* installed theme, otherwise there will be no effect. Check the \"Login Window\" app to see which theme you have active. In the screenshot below, /usr/share/mdm/themes/GDewM/bg.png is the background image used in the theme.\n\n ![Select a background image from the current Login theme](https://raw.githubusercontent.com/primaryobjects/loginimagechanger/master/screenshots/screenshot3.png)\n\n4. Set how frequently to change the image by choosing the number of hours between changes. Leave this as 0 to change the image every reboot. Set to 24 to change once per day.\n\n ![Select hours between changes](https://raw.githubusercontent.com/primaryobjects/loginimagechanger/master/screenshots/screenshot4.png)\n\n5. It's now installed to run automatically at startup! Logout to see the changes take effect.\n\nCommand Line Arguments\n---\n\n-h, --help - Displays help\n```sh\nsudo bash loginimage.sh -h\n```\n\n-r, --run - Run login image changer and change background image\n```sh\nsudo bash loginimage.sh -r\n```\n\n-i, --install - Displays UI to select a new folder and modify settings\n```sh\nsudo bash loginimage.sh -i\n```\n\n-u, --uninstall - Restores a backup of the original theme image, removes the settings folder, removes the auto-run entry from /etc/rc.local\n```sh\nsudo bash loginimage.sh -u\n```\n\nTechnical Details\n---\n\nLogin Image Changer uses Zenity for the user interface. The first time it runs without command line arguments, it checks if the folder exists /usr/share/login-image-changer. If the folder does not exist, the GUI will display, allowing the user to choose options. Upon saving, the folder will be created. The folder contains a settings file and a backup copy of the target theme image to be overwritten.\n\nSaving creates the following auto-run entry in /etc/rc.local (substituting the path of where the script is ran from):\n```sh\nsudo bash \"/home/username/Documents/login-image-changer/loginimage.sh\" -r\n```\nThis allows the script to run each time the computer starts up.\n\nIf you get tired of the fresh and exciting login background images, you can always uninstall with the -u switch.\n\nUninstalling cleans up the files by copying the backup image from /usr/share/login-image-changer back into the original theme folder, removing the entry from /etc/rc.local, and removing the settings folder /usr/share/login-image-changer.\n\nThe script also restores the backup of the theme image when you use the -i switch to pick a new folder and/or theme. This way, if you change themes (in which case, Login Image Changer will be updating the wrong background image now), you can use the -i switch to run the GUI and select the new theme filename. The prior theme will have its original background image restored and the new theme will now be updated upon each PC startup.\n\nTrouble-Shooting\n---\n\n1. Check the current settings by running the setup:\n ```sh\n sudo bash loginimage.sh -i\n ```\n This will allow you to view the selected picture directories, hours between changes, and the date of the last change.\n\n2. Run it manually:\n ```sh\n sudo bash loginimage.sh -r\n ```\n This will run Login Image Changer and let you view the output. Check for any errors. Also, note if the number of hours since the last change has not elapsed, then the image will not be changed.\n \n3. If the image fails to update only during reboot, you can log the calls to Login Image Changer by editing /etc/rc.local and adding the following lines towards the top of the file:\n ```sh\n # Log rc.local to tmp/rc.local.log\n exec 2\u003e /tmp/rc.local.log      # send stderr from rc.local to a log file\n exec 1\u003e\u00262                      # send stdout to the same log file\n set -x   \n ```\n Then reboot your PC, log in, and view the file /tmp/rc.local.log to check for any errors. Login Image Changer outputs status each time it runs.\n\nLicense\n----\n\nMIT\n\nAuthor\n----\nKory Becker\nhttp://www.primaryobjects.com/kory-becker\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Floginimagechanger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimaryobjects%2Floginimagechanger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Floginimagechanger/lists"}