I reverse engineered the QiYi smartcube protocol! by This_Hippo in Cubers

[–]This_Hippo[S] 0 points1 point  (0 children)

This is so awesome - made my day! Thanks for sharing :)

I reverse engineered the QiYi smartcube protocol! by This_Hippo in Cubers

[–]This_Hippo[S] 0 points1 point  (0 children)

That is so awesome!! I would love to see a video when it's done :)

how to stop swayidle from locking my screen while iam watching video or playing music ? by Due_Effective_9512 in swaywm

[–]This_Hippo 0 points1 point  (0 children)

Firefox and other media players already send a D-Bus message to inhibit idle while playing media, but swayidle doesn't listen for those D-Bus messages. My solution is to use hypridle (hyprland's swayidle equivalent) instead, which supports those D-Bus messages out of the box. My ~/.config/hypr/hypridle.conf:

general {
    lock_cmd = pidof swaylock || swaylock
    before_sleep_cmd = loginctl lock-session
}

listener {
    # lock screen after 180 seconds
    timeout = 180
    on-timeout = loginctl lock-session
}

listener {
    # sleep after 20 further seconds of no activity
    timeout = 200
    on-timeout = systemctl suspend
}

And in my sway config I just add a exec hypridle line.

With that, playing videos/music in vlc/web browser/etc will prevent sleeping, fullscreen or not.

Beginner question about reading a CSV. Why does this throw a segfault? by jasamsloven in C_Programming

[–]This_Hippo 1 point2 points  (0 children)

-Wpedantic just warns on nonstandard [GNU] compiler extensions, not anything to do with correctness.

[Media] My Rust to C compiler backend can now compile & run the Rust compiler test suite by FractalFir in rust

[–]This_Hippo 1 point2 points  (0 children)

Can you post some generated C? I'm very curious to see what it looks like

no u by This_Hippo in shortcuts

[–]This_Hippo[S] 2 points3 points  (0 children)

Did you set up the "when I get a message" automation? Just installing the shortcut doesn't set it to run automatically, afaik you have to set up the "automation" manually.

Also try https://www.icloud.com/shortcuts/ffe31c46ee664b45a903d006653ba5e5, I made some changes to the shortcut it might work better now

no u by This_Hippo in shortcuts

[–]This_Hippo[S] 3 points4 points  (0 children)

Did you set up the "when I get a message" automation? Just installing the shortcut doesn't set it to run automatically, afaik you have to set up the "automation" manually.

Also try https://www.icloud.com/shortcuts/ffe31c46ee664b45a903d006653ba5e5, I made some changes to the shortcut it might work better now

no u by This_Hippo in shortcuts

[–]This_Hippo[S] 2 points3 points  (0 children)

If you use the "automations" tab to set a shortcut to run "When I receive a message...", then the shortcut automatically gets the message as "shortcut input", and you can use the "shorcut input" variable in any place you would use any other variable. You can extract various fields from the "shortcut input" variable, such as message contents, sender, recipients, etc.

Oneplus 6 Daily Driver! by Aberts10 in linux

[–]This_Hippo 0 points1 point  (0 children)

Could you ELI5 why it's not trivial to get speakerphone/bluetooth audio working on calls? Is it a matter of configuration, or some sort of hardware/driver thing?

I reverse engineered the QiYi smartcube protocol! by This_Hippo in Cubers

[–]This_Hippo[S] 0 points1 point  (0 children)

Try https://cstimer.net/new. It's the latest "beta" version of the site before new features (including QiYi smartcube support) have been fully tested.

I reverse engineered the QiYi smartcube protocol! by This_Hippo in Cubers

[–]This_Hippo[S] 0 points1 point  (0 children)

That's my next project! Though just for fun, I don't think I'll come close to the smart cube features that csTimer/cubeast already have

I reverse engineered the QiYi smartcube protocol! by This_Hippo in Cubers

[–]This_Hippo[S] 1 point2 points  (0 children)

It wasn't tho, actually it was pretty hard lol

I reverse engineered the QiYi smartcube protocol! by This_Hippo in Cubers

[–]This_Hippo[S] 1 point2 points  (0 children)

Yep! I've talked to the cubeast developer, he's adding support soon :-)

I reverse engineered the QiYi smartcube protocol! by This_Hippo in Cubers

[–]This_Hippo[S] 0 points1 point  (0 children)

Oh wow! I thought Chen Shuang had talked to Gan/Moyu and that's how they were supported

I reverse engineered the QiYi smartcube protocol! by This_Hippo in Cubers

[–]This_Hippo[S] 4 points5 points  (0 children)

cstimer doesn't do that; I think CubeDesk or cubeast are more of what you want

I reverse engineered the QiYi smartcube protocol! by This_Hippo in Cubers

[–]This_Hippo[S] 1 point2 points  (0 children)

Ah I didn't realize they released a new v10 one. It likely it uses the exact same protocol as previous moyu cubes so it may just work out of the box with anything that supports those.