You are not logged in.

#1 2026-06-24 14:00:32

a_manthey
Member
Registered: 2017-08-21
Posts: 45

nwg-screenshot-applet not working with hyprland.lua config

the applet is started by this line in autostart.lua:

hl.on("hyprland.start", function () 
    ...
    hl.exec_cmd("nwg-screenshot-applet")
    ...
end)
 

,
icon appears in tray, menu is shown on left click but no screenshots are saved.

After starting in terminal i get this:

[andreas@nb-andreas-14 ~]$ nwg-screenshot-applet
error: [string "return hl.dispatch(exec screenshot focused)"]:1: ')' expected near 'screenshot'

 → Note: dispatch in lua is a shorthand for hl.dispatch(...), your syntax might need to be updated.
error: [string "return hl.dispatch(exec screenshot fullscreen..."]:1: ')' expected near 'screenshot'

 → Note: dispatch in lua is a shorthand for hl.dispatch(...), your syntax might need to be updated.
error: [string "return hl.dispatch(exec screenshot swappy)"]:1: ')' expected near 'screenshot'

 → Note: dispatch in lua is a shorthand for hl.dispatch(...), your syntax might need to be updated.

Offline

#2 Yesterday 17:16:58

a_manthey
Member
Registered: 2017-08-21
Posts: 45

Re: nwg-screenshot-applet not working with hyprland.lua config

If hyprland is started with the deprecated Hyprlang config the nwg-screenshot-applet works as expected.

Offline

#3 Yesterday 19:41:14

tekstryder
Member
Registered: 2013-02-14
Posts: 571

Re: nwg-screenshot-applet not working with hyprland.lua config

Consider starting a discussion here:

https://github.com/hyprwm/Hyprland/discussions

Also helpful if you could bisect to find whether this regressed or broken since lua landed:

https://wiki.hypr.land/Crashes-and-Bugs … g-an-issue

Offline

#4 Yesterday 22:21:17

ajgringo619
Member
Registered: 2023-05-06
Posts: 52

Re: nwg-screenshot-applet not working with hyprland.lua config

I would file a bug here: https://github.com/nwg-piotr/nwg-shell-config. The problem is that this package has not been updated to the new Lua-based syntax.

Offline

#5 Yesterday 22:28:13

tekstryder
Member
Registered: 2013-02-14
Posts: 571

Re: nwg-screenshot-applet not working with hyprland.lua config

ajgringo619 wrote:

this package has not been updated to the new Lua-based syntax.

Yeah that'll be a problem haha.

OP still has at least one hyprland release or maybe two (a few months) where hyprlang will still be supported, so no rush.

Offline

#6 Today 13:55:44

a_manthey
Member
Registered: 2017-08-21
Posts: 45

Re: nwg-screenshot-applet not working with hyprland.lua config

Offline

#7 Today 21:19:04

killertofus
Member
Registered: 2025-02-10
Posts: 192

Re: nwg-screenshot-applet not working with hyprland.lua config


I Have Linux Perl Can i Download Gnome???

Offline

Board footer

Powered by FluxBB