You are not logged in.

#1 2024-12-15 09:41:54

JanJuggleMan
Member
Registered: 2024-12-15
Posts: 3

Hotkey to activate an application (xbindkeys)

Hi, I did make the switch from windows to arch linux (default options installed with gnome) last week and miss my hotkeys to activate programs.

I am absolute Newbie but trying the best I can:
So far i did read the instructions and created

sudo packman -s xbindkeys #worked out fine
Create a blank ~/.xbindkeysrc

Filled it with what should be Ctrl+Alt+l and it should launch my default notepad use for daily notes in kwrite. Found this somewhere in google and tested it on the console and it works.
"/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=kwrite --file-forwarding org.kde.kwrite @@u "/home/jan/Documents/logboek.txt" @@"
    m:0x5 + c:46

Since nothing happened i thought lets take a look at the example and create something more easy
Trying to incease and decrease volume with Ctrl and numpad - and increase it with Ctrl + numpad +
on the commandline it does increase and decrease volume when i excecute the commands

new content of ~/.xbindkeysrc
"pactl set-sink-volume 0 -1000"
  m:0x4 + c:82

"pact set-sink-volume 0 +1000"
  m:0x4 + c:86

I did find the keycodes needed with command
xbindkeys --key

the command xbindkeys -s output of the last try

"pactl set-sink-volume 0 -1000"
    m:0x4 + c:82
    Control + KP_Subtract
"pact set-sink-volume 0 +1000"
    m:0x4 + c:86
    Control + KP_Add

I did reboot the OS to make sure all configuation is loaded.

Any hints and tips, examples for any hotkey (launching firefox) anything, if there is another way to do it that's also fine.
May a hint where i could find some information to logs containing error messages.

Kind regards,
Jan

Last edited by JanJuggleMan (2024-12-15 09:58:00)

Offline

#2 2024-12-15 12:58:42

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,309

Re: Hotkey to activate an application (xbindkeys)

sudo packman -s xbindkeys #worked out fine

Probably not tongue

Please use [code][/code] tags. Edit your post in this regard.

"/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=kwrite…

Found this somewhere in google/

roll
https://archlinux.org/packages/extra/x86_64/kate/
This will allow you to record the shortcut by pressing it.

xbindkeys -k

I did find the keycodes needed with command

Ah… see - code tags wink

Is the xbindkeys daemon actually runnig?

loginctl session-status

Online

#3 2024-12-15 14:24:04

JanJuggleMan
Member
Registered: 2024-12-15
Posts: 3

Re: Hotkey to activate an application (xbindkeys)

the command did give me back the response:

  Since: Sun 2024-12-15 09:50:33 CET; 5h 8min ago
  State: active
 Leader: 1163 (gdm-session-wor)
   Seat: seat0; vc2
    TTY: tty2
 Remote: no
Service: gdm-password
   Type: wayland
  Class: user
   Idle: no
   Unit: session-3.scope
         ├─1163 "gdm-session-worker [pam/gdm-password]"
         ├─1232 /usr/lib/gdm-wayland-session /usr/bin/gnome-session
         └─1236 /usr/lib/gnome-session-binary

Guess not so some more investigation to be done.

Thanks for pointing out I posted this question in the right section smile

I will get it running somehow and

 I will be back!, n00b out!! 

Offline

#4 2024-12-15 14:28:49

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,309

Re: Hotkey to activate an application (xbindkeys)

You're running gnome on wayland - forget about xbindkeys.
https://help.gnome.org/users/gnome-help … et.html.en

Online

#5 2024-12-16 04:03:02

JanJuggleMan
Member
Registered: 2024-12-15
Posts: 3

Re: Hotkey to activate an application (xbindkeys)

Thank you very much it worked smile

Offline

#6 2024-12-16 08:02:57

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,309

Re: Hotkey to activate an application (xbindkeys)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB