This forum has been archived. All content is frozen. Please use KDE Discuss instead.

caps lock, num lock etc plasmoid

9

Votes
9
0
Tags: plasma plasma plasma
(comma "," separated)
User avatar
Dimitrios
Registered Member
Posts
659
Karma
0
OS

caps lock, num lock etc plasmoid

Fri Nov 06, 2009 7:39 pm
I want to propose to a developer to make a plasmoid that indicates when we have the cups lock, num lock enabled. In KDE 3.5 it had a karamba for this


«The magic continues...»
http://www.mageia.org
Image
The User
KDE Developer
Posts
647
Karma
0
OS

caps lock, num lock etc plasmoid

Sat Nov 07, 2009 6:47 pm
This would be really easy to implement. When you have some C++ experience (or maybe Ruby or Python) you should try it.
You can find code to determine such stuff at KDE/kdebase/krunner/lock/lockdlg.cc:
Code: Select all
void PasswordDlg::capsLocked()<br />{<br /> unsigned int lmask;<br /> Window dummy1, dummy2;<br /> int dummy3, dummy4, dummy5, dummy6;<br /> XQueryPointer(QX11Info::display(), DefaultRootWindow( QX11Info::display() ), &dummy1, &dummy2, &dummy3, &dummy4, &dummy5, &dummy6, &lmask);<br /> mCapsLocked = lmask & LockMask;<br /> updateLabel();<br />}


Look at the Plasma-Tutorials at KDE-Techbase.
User avatar
Primoz
Moderator
Posts
859
Karma
1
OS

caps lock, num lock etc plasmoid

Sat Nov 07, 2009 9:19 pm
Already implemented. I have this plasmoid. it's called input device status applet. I think it's in playground.
This is how it looks like: link

Somehow the thumbnail doesn't work.

I'm marking it already implemented.


Primoz, proud to be a member of KDE forums since 2008-Nov.
User avatar
Dimitrios
Registered Member
Posts
659
Karma
0
OS

caps lock, num lock etc plasmoid

Sat Nov 07, 2009 10:17 pm
thanks for the info
in mandriva i did nt find this plasmoid


«The magic continues...»
http://www.mageia.org
Image
User avatar
QwertyManiac
Registered Member
Posts
5
Karma
0
OS

caps lock, num lock etc plasmoid

Tue Nov 10, 2009 1:31 pm
@Dimitrios - I could find this only on Ubuntu and OpenSUSE (To my best knowledge). It isn't part of the KDE officially yet, I think.

I've uploaded Ubuntu's used sources at KDE-Look.org, you can grab it and build it here:
http://kde-look.org/content/show.php/Ke ... ent=115234

The plasmoid was written by Gunnar Schmi Dt [(C) 2004] and Sebastian Sauer [(C) 2008]


Harsh J
Blog | Code | Twitter
QwertyManiac, proud to be a member of KDE forums since 2008-Oct.
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

caps lock, num lock etc plasmoid

Tue Nov 10, 2009 5:45 pm
It's in playground, that means it is written in some state but has not been included in an official KDE release yet.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
Dimitrios
Registered Member
Posts
659
Karma
0
OS

caps lock, num lock etc plasmoid

Wed Nov 11, 2009 9:22 am
Thanks, thats great :)


«The magic continues...»
http://www.mageia.org
Image
chatan
Registered Member
Posts
10
Karma
0
OS

caps lock, num lock etc plasmoid

Fri Feb 26, 2010 11:24 am
How can something that has to be "built" considered implemented? I say that a non technical user who tried to build it but failed. KDE 3.5 had it ready to go (i.e, right click panel, find it and done); shouldn't KDE4?
My logitech wireless keyboard has no lights so this is important, especially for the wife :)
Thanks for listening.
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

caps lock, num lock etc plasmoid

Mon Mar 01, 2010 11:30 pm
You will have to take that up with with your distribution. It is their choice not to build it. Some distributions do, some don't. KDE has no control over which packages distributions choose to build and which they don't. It exists, and is available. That means it is implemented.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
chatan
Registered Member
Posts
10
Karma
0
OS

caps lock, num lock etc plasmoid

Fri Mar 05, 2010 11:21 am
Thanks for the explanation BlackCat. I'm a silly newbie who shouldn't stray too far from own forums :)
User avatar
Rog131
Registered Member
Posts
828
Karma
10
With the plasma 5: keystate-plasmoid; https://github.com/xdarklight/keystate-plasmoid
An accessibility Plasmoid that shows the status of various key on your keyboard (for example if "Caps Lock" is enabled or "Meta" is pressed)....


Image

KDE bug / wish: Bug 374334 - Please add a notification when NumLock/CapsLock is switched on/off - https://bugs.kde.org/show_bug.cgi?id=374334


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]