Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

Original
4
Become a Fan
6.9

Available as/for:desktop
Description:
This is a simple widget that shows the status of your video graphics card using the "prime-select" command and lets you switch between your Nvidia card and your intel video card. Also, it give you the option to see what version of Nvidia drivers you have and a quick short-cut to open nvidia-settings.
For this widget work like a charm, you need to have installed "zenity" and "libnotify-tools" (This is required if you want to be able to switch video cards) and you need to have the Nvidia drivers installed and the switch "prime-select nvidia" and "prime-select intel" working properly.
You can customize the names and models of the video cards in settings.
This widget works on dark and light themes.
Last changelog:

Version 0.4

Version 0.4 is now using pkexec and have some bugs fixed.


Ratings & Comments

9 Comments

dtech2008

10 10 the best

franciscot

10 Very good applet. I've changed kdesu for pkexec. and Intel for ondemand in my case. What do you think about to use the applet in the system tray? I think it's a good option. Anyway, thank you for your work!

jfespinal

Hello franciscot, The true is that I am very new making applets for kde, and I don’t know how to put it on the system tray. I was having trouble with the logout command that I used and I don’t know a command that make a kde logout for sure every time that the user runs it, but with the feedback of the users I can make better updates. I know that I made just intel and nvidia cards I made this because this is my configuration but other users may have ati cards, the command will be prime-select ati? I don’t know, maybe you could help to make better updates. I am glad that this applet helps so many users because I started this for my self and I saw that I could share it here!

franciscot

I think it's better to use pkexec than kdesu. I dont know how the system tray works, I have never found information about it. You can use this command to start the logout: qdbus org.kde.ksmserver / KSMServer logout 1 3 3 Or logout without confirmation: qdbus org.kde.ksmserver / KSMServer logout 0 3 3 (careful!) You can get the profiles with the 'prime-select query' command. In my case they are "intel" "ondemand" (hybrid) and "nvidia" Sorry not to be of more help, I am an amateur programmer.

franciscot

Sorry, you can get profiles just with "prime-select"

jfespinal

Hi fransiscot, this is what I get with prime-select: nvidia: use the NVIDIA proprietary driver intel: use the Intel card with the "modesetting" driver PRIME Render Offload possible with >= 435.xx NVIDIA driver with prime-select service DISABLED intel2: use the Intel card with the "intel" Open Source driver (xf86-video-intel) PRIME Render Offload possible with >= 435.xx NVIDIA driver with prime-select service DISABLED unset: disable effects of this script and let Xorg decide what driver to use get-current: display driver currently configured log-view: view logfile log-clean: clean logfile I was trying with the pkexec, there is not information how to put a plasmoid on the system tray and the commands you wrote for logout are not working for me.

franciscot

An example of plasmoid on system tray: https://forum.kde.org/viewtopic.php?f=305&t=142838#p383893 And I think the keyboard indicator is a good example too. In my system is in /usr/share/plasma/plasmoids/org.kde.plasma.keyboardindicator/

driglu4it

10 Good work!

jfespinal

Thank you very much!

Pling
0 Affiliates
Details
license Creative Commons 0 (Public Domain)
version 0.4
updated
added
downloads 24h 2
mediaviews 24h 0
pageviews 24h 4

Other Plasma 5 Monitoring:

BCache Monitor
agronick
last update date: 11 years ago

Score 6.5

Netspeed Widget
HessiJames
last update date: 2 years ago

Score 8.3

Uptime Widget
clearmartin
last update date: 9 years ago

Score 7.8

Resources Monitor
clearmartin
last update date: 9 years ago

Score 8.0

Network Monitor
clearmartin
last update date: 9 years ago

Score 8.0

Thermal Monitor
clearmartin
last update date: 8 years ago

Score 8.1