Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] How Can I invoke Fn Shorkeys (adjust Brightness)?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

[Solved] How Can I invoke Fn Shorkeys (adjust Brightness)?

#1 Post by bester69 »

Hi,

I need to adjust brightness and sound from my USB keyboard that is missing those Fn keys.. so I would need something like this..:

Ctrl+ LeftCursor (xdoot script Plama Shortcut)--> Maps: Fn+8 (brigntness Up keys on laptop keyboard)
Ctrl+ RightCursor (xdoot script Plama Shortcut)--> Maps: Fn+7 (brigntness Down keys on laptop keyboard)
Ctrl+ UpCursor (xdoot script Plama Shortcut)--> Maps: Fn+6 (Volume Up keys on laptop keyboard)
Ctrl+ UpCursor (xdoot script Plama Shortcut)--> Maps: Fn+5 (Volume Down keys on laptop keyboard)
xdotool <<Laptop Keyboard>> key <<ctrl+q>>

I think to have readen somewhere xdotool cant use Fn buttons.. anyway.. is there an easy way to achieve this :? ..It doesnt seem easy task



Thanks
Last edited by bester69 on 2021-08-26 02:04, edited 1 time in total.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: How Can I invoke Fn Shorkeys (adjust Brightness)?

#2 Post by bester69 »

ok, for Plasma, this will make it.

https://martinovic.blog/post/kdeconnect_commands/

Volume Up:
qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"
Volume Down:
qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"
Volume Mute:
qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mute"

Brightness Up:
qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) + 20)
Brightness Down:
qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) - 20)


Thanks.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Post Reply