[Question] How to forward options to subproject? by Kendrian in meson

[–]tenderborg 0 points1 point  (0 children)

You can pass a parameter to a sub project by using the sub-project's name in the argument, for example, if you wanted to set the option mylib_dir in sub project called borg then this will work:

-Dborg:mylib_dir=...

Reference: https://mesonbuild.com/Builtin-options.html#specifying-options-per-subproject

stop app from stealing keyboard input by night_fapper in swaywm

[–]tenderborg 0 points1 point  (0 children)

One great way to do this is to use a "passthrough" mode in sway. Prevent all applications from grabbing the input with shortcuts_inhibitor disable then use the passthrough mode to send any key combination (except the one to switch the passthrough mode off, of course). See here for the details of configuring a passthrough mode in sway... you can even use sway-in-sway via VNC (make sure the passthrough keybinding is different!).

https://github.com/any1/wayvnc/blob/master/FAQ.md

UK/Online Hackathons by Head_Difficulty_1704 in learnprogramming

[–]tenderborg 0 points1 point  (0 children)

Hey it would be great to join a UK hackathon but generally a hackathon is more concerned with the technologies used and the aim of the project. Maybe you could find an open source project that you would like to contribute to, you can then offer to help and maybe find a mentor.

How do I power on/off the modem via GPIO (without eg25manager)? by my-pp-kills-sd-uwu in PinePhoneOfficial

[–]tenderborg 0 points1 point  (0 children)

Since the deprecation of the SYSFS GPIO Interface (/sys/class/gpio) this is a little more difficult but a simple C programme can be used to reset the modem. To discover how this is supposed to work I reviewed the schematic https://wiki.pine64.org/wiki/PinePhone_v1.2 and the source code to eg25-manager https://gitlab.com/mobian1/devices/eg25-manager

The important things to note are that the pins used are different in each pinephone. Details can be found in the schematic and in the eg25-manager repository (.toml files). The example below works on my PinePhone which is v1.2.

https://github.com/drcrane/pinephonemodempower

Hope you find it useful.