end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
4.38k stars 302 forks source link

[Feature] Send an AI message via Enter key #765

Closed sh1zicus closed 1 month ago

sh1zicus commented 2 months ago

What would you like to be added?

The ability to use the enter button in AI services as a send

How will it help

It is not very convenient to click on the button with the mouse, the enter button works as a line break. is it possible to add this?

end-4 commented 2 months ago

Shift+Enter should create newline and Enter should send though. No? probably a Hyprland problem. I don't remember encountering it recently... which Hyprland version are you on? Maybe update it?

sh1zicus commented 2 months ago

latest version, I think most likely the problem is that I don't have a regular enter but a Kp_Enter

I know how to fix this in xorg, but I don't know how in wayland. xmodmap -e 'keycode 104 = Return NoSymbol Return NoSymbol Return'

Shift+Enter should create newline and Enter should send though. No? probably a Hyprland problem. I don't remember encountering it recently... which Hyprland version are you on? Maybe update it?

end-4 commented 2 months ago

In ~/.config/ags/modules/sideleft/apiwidgets.js, add the following after line 92:

            print(event.get_keyval()[1]);

Then run ags in terminal with pkill ags; ags. Open the sidebar then press your enter key. Then send me the terminal output and I'll handle it for you

sh1zicus commented 2 months ago

65421

end-4 commented 2 weeks ago

thanks to ai i now know there's already a const for that key... also i'm so sorry how long it took... i haven't been really actively using hyprland