Re: Service Menus with Dolphin
Two click wallpaper change
This was working with the Kubuntu 9.04 / KDE 4.2.4, Kubuntu 9.10 (a6) / KDE 4.3.1
This is linking to the > Topic: How to change desktop background from dolphin and/or gwenview in kde4?
> change wallpaper & weather wallpaper
Making a .desktop file to the ~/.kde/share/kde4/services/ServiceMenus:
wallpaper.desktop
Update:
I'm using the ImageMagic to scale&crop the image:
Making a directory: Wallpaper in the home directory (/home/rog/Wallpaper).
Click #1
With the Dolphin > Right clicking the imagefile > Set Wallpaper
Click #2
Clicking the plasma-widget-nextwallpaper to show the new wallpaper.
The wallpaper is changing.
The "convert is part of the imagemagick. Package: imagemagick.
man convert:
The plasma-widget-nextwallpaper is > KDE-Look / Next wallpaper:
It is in the repositories.
Two click wallpaper change
This was working with the Kubuntu 9.04 / KDE 4.2.4, Kubuntu 9.10 (a6) / KDE 4.3.1
This is linking to the > Topic: How to change desktop background from dolphin and/or gwenview in kde4?
> change wallpaper & weather wallpaper
by JaKi » Thu Aug 27, 2009 3:53 pm
By now I change my wallpaper through a servicemenu. I have set the wallpaper in that dialog to use ~/background.jpg. And via the picture's servicemenu I copy another file to background.jpg. That works fine except for one exception: the new wallaper only appears after either a relogin or in current session when I open the wallpaper dialog and confirm it without changing anything. So I'd love to call that dialog from the servicemenu.
by JaKi » Sat Sep 05, 2009 9:33 pm
I installed the "next wallpaper" widget and it works fine even when the desktop is not in slideshow mode! I now set the wallpaper via my servicemenu (copy the chosen picture to background.jpg) and just have to click on the next wallpaper widget in the panel to let the new wallpaper smoothly blend in (I now use a subdirectory in which background.jpg is the only picture). Nice!
By now I change my wallpaper through a servicemenu. I have set the wallpaper in that dialog to use ~/background.jpg. And via the picture's servicemenu I copy another file to background.jpg. That works fine except for one exception: the new wallaper only appears after either a relogin or in current session when I open the wallpaper dialog and confirm it without changing anything. So I'd love to call that dialog from the servicemenu.
by JaKi » Sat Sep 05, 2009 9:33 pm
I installed the "next wallpaper" widget and it works fine even when the desktop is not in slideshow mode! I now set the wallpaper via my servicemenu (copy the chosen picture to background.jpg) and just have to click on the next wallpaper widget in the panel to let the new wallpaper smoothly blend in (I now use a subdirectory in which background.jpg is the only picture). Nice!
Making a .desktop file to the ~/.kde/share/kde4/services/ServiceMenus:
wallpaper.desktop
Code:
[Desktop Entry] Type=Service ServiceTypes=KonqPopupMenu/Plugin MimeType=image/*; Actions=;SetWallpaper; X-KDE-Priority=TopLevel X-KDE-Submenu=Image [Desktop Action SetWallpaper] Name=Set Wallpaper Icon=folder-image Exec=convert "%f" ~/Wallpaper/MyWallpaper.jpg
I'm using the ImageMagic to scale&crop the image:
Code:
Exec=convert "%f" -resize 1680x1050^ -gravity center -extent 1680x1050 ~/Wallpaper/MyWallpaper.png
Making a directory: Wallpaper in the home directory (/home/rog/Wallpaper).
Click #1
With the Dolphin > Right clicking the imagefile > Set Wallpaper
Click #2
Clicking the plasma-widget-nextwallpaper to show the new wallpaper.
The wallpaper is changing.
The "convert is part of the imagemagick. Package: imagemagick.
man convert:
NAME
convert - convert between image formats as well as resize an image, blur, crop, despeckle, dither,
draw on, flip, join, re-sample, and much more.
SYNOPSIS
convert input-file [options] output-file
convert - convert between image formats as well as resize an image, blur, crop, despeckle, dither,
draw on, flip, join, re-sample, and much more.
SYNOPSIS
convert input-file [options] output-file
Simple applet that changes the current wallpaper (when in slideshow mode) on command
Comment