You are not logged in.

#1 2020-09-30 08:18:08

dezire
Member
Registered: 2020-09-30
Posts: 45

[SOLVED] Alacritty not opening on keyboard shortcut

I have KDE plasman installed on top of Arch.
I changed the default terminal from Konsole to Alacritty in the System settings then I added a shortcut for Alacritty.
Even then the shortcut (Ctrl+Alt+T) is not working.

Last edited by dezire (2021-03-07 15:42:29)

Offline

#2 2020-09-30 15:33:20

coxe87b
Member
From: Canberra
Registered: 2019-12-08
Posts: 92

Re: [SOLVED] Alacritty not opening on keyboard shortcut

It's been a while since I used Plasma, but if I recall correctly, there are different categories of keyboard shortcuts. Global, custom, etc.

Did you try your shortcut in a different category?


Desktop: Dual boot {Arch & Windows 11}  |  Hyprland  |  AMD Ryzen 5700X  |  32GB DDR4  |  AMD Radeon RX 6700XT  |  Dual display DP-1 & DP-2=2560x1440
Laptop: Triple boot {Arch & Mint & Windows 11}  |  Dell Latitude 5420  |  Intel Core i5-1145G7  |  16GB DDR4  |  Iris Xe GPU | eDP-1=1920x1080

~ Do or do not, there is no try ~

Offline

#3 2020-10-01 15:54:53

dezire
Member
Registered: 2020-09-30
Posts: 45

Re: [SOLVED] Alacritty not opening on keyboard shortcut

coxe87b wrote:

It's been a while since I used Plasma, but if I recall correctly, there are different categories of keyboard shortcuts. Global, custom, etc.

Did you try your shortcut in a different category?

Nope, I have tried all types of shortcuts...

Offline

#4 2020-10-01 16:12:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,707

Re: [SOLVED] Alacritty not opening on keyboard shortcut

You'll have to be a bit more specific here…

a) can you run alacritty at all?
b) how and where exactly did you create a shortcut (assuming some GUI config, post a link to a screenshot in doubt)

Offline

#5 2020-10-01 16:57:40

dezire
Member
Registered: 2020-09-30
Posts: 45

Re: [SOLVED] Alacritty not opening on keyboard shortcut

seth wrote:

You'll have to be a bit more specific here…

a) can you run alacritty at all?
b) how and where exactly did you create a shortcut (assuming some GUI config, post a link to a screenshot in doubt)

Yes alacritty is actually working fine....
All, other terminal emulators are launched on setting the shortcut in the keyboard shortcut option... only alacritty is not launching with shortcut

Offline

#6 2020-10-01 18:40:48

fistrosan
Member
Registered: 2020-04-01
Posts: 171

Re: [SOLVED] Alacritty not opening on keyboard shortcut

You need to add them to "custom shortcuts" and add your key combination under "triggers". If you did it correctly, inside .config/kglobalshortcutsrc there should be a field for that specific shortcut. For instance, in my case it reads:

[khotkeys]
_k_friendly_name=KDE Daemon
{457a78bb-73af-40d9-9b92-be56a9ca5d33}=Meta+T,none,thinlinc
{75593e7d-80a1-46ee-9968-ee6d43651cba}=Meta+W,none,/usr/bin/waterfox
{75ed87c4-20b1-4fa0-97b2-05c345b2fd65}=Meta+D,none,dmenu
{7a791aa0-ca4f-4c98-9c4a-b3ef7e574c03}=Meta+E,none,emacs
{8468d0ea-95c7-49b9-b577-cfabf9408c73}=Meta+Shift+L,none,i3lock
{9c813321-8e2c-428f-85a1-2fe67fff9d62}=Meta+S,none,steam
{c46de7e0-f08d-42e6-be23-a96ba9dabc80}=Meta+Return,none,terminator

Edit: it seems you are completely right. I just installed alacritty and I cannot set it up neither as custom nor as global shortcut even if .config/kglobalshortcutsrc is correctly set up. It is funny, because it works just fine launching it within i3 and also inside dmenu (either in KDE or in i3).

Last edited by fistrosan (2020-10-01 18:51:52)

Offline

#7 2020-10-01 19:09:19

fistrosan
Member
Registered: 2020-04-01
Posts: 171

Re: [SOLVED] Alacritty not opening on keyboard shortcut

I have been looking into this a bit more and I can offer you a workaround to this problem. It could be a good solution for you if you are already acquainted with any WM. The idea is to tell KDE to use that WM (by default KDE uses Kwin, but you can use any other WM) and then you can set up a shortcut inside the configuration file for that WM of your choice. I have tested it with KDE+i3 and it works. If you like I can give you more info.

Offline

#8 2020-10-01 20:39:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,707

Re: [SOLVED] Alacritty not opening on keyboard shortcut

Can you create a shortcut in "kcmshell5 kglobalaccel" to run /usr/bin/alacritty?

Offline

#9 2020-10-02 04:38:54

dezire
Member
Registered: 2020-09-30
Posts: 45

Re: [SOLVED] Alacritty not opening on keyboard shortcut

fistrosan wrote:

I have been looking into this a bit more and I can offer you a workaround to this problem. It could be a good solution for you if you are already acquainted with any WM. The idea is to tell KDE to use that WM (by default KDE uses Kwin, but you can use any other WM) and then you can set up a shortcut inside the configuration file for that WM of your choice. I have tested it with KDE+i3 and it works. If you like I can give you more info.

Actually i am thinking about switching to i3 but it seems quite complicated...

Offline

#10 2020-10-02 05:39:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,707

Re: [SOLVED] Alacritty not opening on keyboard shortcut

There's a gui to change the WM but this is not related to your problem to begin with.
You failed to specify

seth wrote:

how and where exactly did you create a shortcut (assuming some GUI config, post a link to a screenshot in doubt)

but assuming through khotkeys, just try kglobalaccel. The alacritty desktop service has a secondary entry and idk. whether that may throw the khotkeys confi of whack.
It would be simpler though, if you'd answer questions…

Offline

#11 2020-10-02 13:24:30

coxe87b
Member
From: Canberra
Registered: 2019-12-08
Posts: 92

Re: [SOLVED] Alacritty not opening on keyboard shortcut

Try seths suggestion of using kglobalaccel.

If that also doesn't work, you could try installing and using xbindkeys to do the job, however it would be cleaner if you can find the source of the issue. I tend to agree with seths hypothesis about a conflict between khotkeys and alacritty. Perhaps you could file a bug report with alacritty?


Desktop: Dual boot {Arch & Windows 11}  |  Hyprland  |  AMD Ryzen 5700X  |  32GB DDR4  |  AMD Radeon RX 6700XT  |  Dual display DP-1 & DP-2=2560x1440
Laptop: Triple boot {Arch & Mint & Windows 11}  |  Dell Latitude 5420  |  Intel Core i5-1145G7  |  16GB DDR4  |  Iris Xe GPU | eDP-1=1920x1080

~ Do or do not, there is no try ~

Offline

Board footer

Powered by FluxBB