From bafb22c573e54b45c27bfd24187808a2d13abb11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 30 Jun 2024 23:01:09 +0200 Subject: [PATCH] Smol fixes --- curacao/desk/desk_mqtt.py | 8 +++++--- hm/desktop/browser/default.nix | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/curacao/desk/desk_mqtt.py b/curacao/desk/desk_mqtt.py index b016d9a..4d109b1 100755 --- a/curacao/desk/desk_mqtt.py +++ b/curacao/desk/desk_mqtt.py @@ -30,8 +30,8 @@ class Desk: # CBD4+5 Configurator # https://www.linak.nl/technische-ondersteuning/#/cbd4-cbd6s-configurator - # Connects, report software number and version - # All setting values are suspiciously 0 though + # Connects, and settings can be changed. + # Don't think there's much that would help with our problem. # Decompiled with Ghidra (hard), didn't go super far VEND = 0x12D3 @@ -254,10 +254,12 @@ if __name__ == "__main__": device_info = ha_mqtt_discoverable.DeviceInfo( name="Desk", - identifiers="device_id", manufacturer="Linak", model="CBD4P", suggested_area="Desk", + hw_version="77402", + sw_version="1.91", + serial_number="000C-34E7", ) ndigits = 1 diff --git a/hm/desktop/browser/default.nix b/hm/desktop/browser/default.nix index 2fa0c81..f718b8c 100644 --- a/hm/desktop/browser/default.nix +++ b/hm/desktop/browser/default.nix @@ -131,6 +131,7 @@ yt = youtube; }; settings = { + colors.webpage.darkmode.policy.images = "never"; # No inverting images in dark mode, is ugly downloads.location.prompt = false; tabs = { show = "never"; @@ -148,6 +149,7 @@ prefers_reduced_motion = true; headers.accept_language = "fr-FR, fr;q=0.9, en-GB;q=0.8, en-US;q=0.7, en;q=0.6"; tls.certificate_errors = "ask-block-thirdparty"; + javascript.clipboard = "access"; # copy-paste is fine }; editor.command = [ "${pkgs.neovide}/bin/neovide" "--" "-f" "{file}" "-c" "normal {line}G{column0}l" ]; # TODO Doesn't work on Arch. Does it even load the right profile on Nix?