Image 01
profile-image

qwerty12

Some One , Sweden
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

I don't actually have the patch anymore, sorry, but I'll try to recreate it very soon. - Nov 13 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

If you have QMPDClient pinned (or not, I guess it still works if you're running it), you can add the following to /usr/share/applications/qmpdclient.desktop:
Quote:X-Ayatana-Desktop-Shortcuts=Previous;Play;Pause;Stop;Next;

[Previous Shortcut Group]
Name=Previous Track
Icon=media-skip-backward
Exec=mpc prev

[Play Shortcut Group]
Name=Play
Icon=media-playback-start
Exec=mpc play

[Pause Shortcut Group]
Name=Pause
Icon=media-playback-pause
Exec=mpc pause

[Stop Shortcut Group]
Name=Stop
Icon=media-playback-stop
Exec=mpc stop

[Next Shortcut Group]
Name=Next
Icon=media-skip-forward
Exec=mpc next

And as long as you have mpc installed, you can right click the QMPDClient icon and get options like these: http://ompldr.org/vYWtscQ.png - Sep 28 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

As I can't reply to my previous comment: Your unity binary works fine to add a count, but UnityFox does not. Looking at the patches to Ubuntu's version of Firefox, it seems Ubuntu added a patch to Firefox to enable Unity support.

As rebuilding Firefox is not an option for me (time and I like OpenSuSE's Firefox with better KDE integration), I can't prove that actually adding Ubuntu's Unity patch would make UnityFox work - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

It does work in Arch Linux - without needing DockManager or libunity - but the only reason you can't see it is because the applet has to be made rather big in order to see the count: http://imgur.com/Z76jS - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Unfortunately it doesn't work for me: I see nothing on the tooltip for QMPDClient, even though the option to show media controls is enabled

I even installed DockManager to see if that would fix it but it did nothing

I assume I did everything correctly (maybe mpDris2 is faulty - I am running a Git version):
Quote:[faheem@TripleBeamKing ~]$ pacman -Ql qmpdclient | grep desktop
qmpdclient /usr/share/applications/qmpdclient.desktop
[faheem@TripleBeamKing ~]$ ps aux | grep mpD
faheem 2432 0.1 0.5 102308 10484 ? S 20:34 0:00 /usr/bin/python2 /usr/bin/mpDris2 -p /home/faheem/Music
faheem 2781 0.0 0.0 8264 944 pts/2 S+ 20:36 0:00 grep --color=auto mpD
[faheem@TripleBeamKing ~]$ qdbus | grep -i mpd
org.mpris.MediaPlayer2.mpd
net.bitcheese.QMPDClient
[faheem@TripleBeamKing ~]$ cat /usr/share/apps/plasma-icontasks/mediabuttonsrc
[General]
Ignore=kmix,k3b,ghb,xbmc,flashplayer,audex,kmediafactory,kdenlive,avidemux-qt4,mkvinfo,mkvmergegui
[Aliases]
amarok=amarok_containers
qmpdclient=mpd

Anyway, thank you for such a brilliant taskbar replacement! - Sep 27 2011
Icon Tasks

Plasma 4 Extensions by CraigD 642 comments

Hi,

For the "control buttons on media player tooltips" feature, would it be possible to assign a custom D-Bus service name to a window? For example, I use QMPDClient which, as a client for MPD, has no MPRIS support. However there is an external daemon, with no window or anything, mpDris(2), that can respond to MPRIS messages

Thanks! - Sep 27 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

First of all, thank you for the brilliant widget - I didn't like having GTK3 installed just for an indicator that's not as full-featured as yours.

However, I did have problems with defunct processes and the applet not stopping Redshift properly so I hacked it to use KProcess instead to start and manage its process. KProcess (as it is derived from QProcess) has signals that are emitted when a process is started/stopped, removing the need to keep a timer, for one.

This is a hack, however, and I only link to the patch as a reference of sorts.

I made the following changes:
Remove the Unknown state and use the same light bulb icon when the applet is on. Though it could be useful if self.process.state() == QProcess.Starting...
Remove f.lux support. I'm too lazy to perform the changes for f.lux, too, and I don't use f.lux because it's closed and couldn't maintain a dimmed state on my computer.
Use KProcess to start and manage the process - instead of the timer, use QProcess's signals
Send SIGUSR1 instead of terminating/suspending the process to change Redshift's state

Now I can click on the widget when it's running and have Redshift start/stop depending on the state accordingly. Killing Redshift manually from the terminal will change the applet's icon back to the offline one and I can press the applet's button to have it start up Redshift again.

http://pastebin.com/zxMK5Rvp - Sep 24 2011
PlasmaNotify Firefox addon

Utilities by ademmer1977 43 comments

Since you're using Arch Linux, why not use firefox-kde-opensuse from the AUR, which also uses KDE to show its notifications. - Jul 04 2011
Icon Tasks

Plasma 4 Extensions
by CraigD

8.8
Sep 27 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions
by diegc

8.1
Sep 24 2011
Icon Tasks

Plasma 4 Extensions
by CraigD

8.8
9   Sep 27 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions
by diegc

8.1
9   Sep 24 2011