hyprwm / hyprlock

Hyprland's GPU-accelerated screen locking utility
BSD 3-Clause "New" or "Revised" License
827 stars 57 forks source link

Blur is not working for me #293

Closed mobsenpai closed 7 months ago

mobsenpai commented 7 months ago
OS: NixOS
Hyprland version: v0.32.3
Nixpkgs: 23.11

This is my hyprlock config in nixos


{
config,
inputs,
lib,
...
}: {
imports = [
inputs.hyprlock.homeManagerModules.hyprlock
];

options = { myhome.hyprlock.enable = lib.mkEnableOption "Enables hyprlock"; };

config = lib.mkIf config.myhome.hyprlock.enable { programs.hyprlock = with config.myhome.colorscheme; { enable = true; general = { disable_loading_bar = true; grace = 0; hide_cursor = true; no_fade_in = false; };

  backgrounds = [
    {
      path = "";
      color = "rgba(0, 0, 0, 0.5)";
      blur_passes = 3;
      contrast = 0.8916;
      brightness = 0.8172;
      vibrancy = 0.1696;
      vibrancy_darkness = 0.0;
    }
  ];

  input-fields = [
    {
      size = {
        width = 200;
        height = 50;
      };
      outline_thickness = 2;
      dots_size = 0.25;
      dots_spacing = 0.25;
      dots_center = true;
      outer_color = "rgb(${colors.black})";
      inner_color = "rgb(${colors.black})";
      font_color = "rgb(${colors.white})";
      fade_on_empty = false;
      placeholder_text = "<i>Input Password...</i>";
      hide_input = false;
      position = {
        x = 0;
        y = -100;
      };
      halign = "center";
      valign = "center";
    }
  ];
  labels = [
    {
      text = "$TIME";
      color = "rgb(${colors.white})";
      font_size = 80;
      font_family = "JetBrainsMono Nerd Font ExtraBold";
      position = {
        x = 0;
        y = -200;
      };
      halign = "center";
      valign = "top";
    }
    {
      text = "Hi there, $USER";
      color = "rgb(${colors.white})";
      font_size = 18;
      font_family = "JetBrainsMono Nerd Font";
      position = {
        x = 0;
        y = -30;
      };
      halign = "center";
      valign = "center";
    }
  ];
};

}; }


> This is output file `~/.config/hypr/hyprlock.conf`
```conf

general {
  disable_loading_bar = true
  grace = 0
  hide_cursor = true
  no_fade_in = false
  no_fade_out = false
  ignore_empty_input = false
}

background {
  monitor = 
  path = 
  color = rgba(0, 0, 0, 0.5)
  blur_size = 8
  blur_passes = 3
  noise = 0.011700
  contrast = 0.891600
  brightness = 0.817200
  vibrancy = 0.169600
  vibrancy_darkness = 0.000000
}

input-field {
  monitor = 
  size = 200, 50
  outline_thickness = 2
  dots_size = 0.250000
  dots_spacing = 0.250000
  dots_center = true
  dots_rounding = -1
  outer_color = rgb(282828)
  inner_color = rgb(282828)
  font_color = rgb(ebdbb2)
  fade_on_empty = false
  fade_timeout = 2000
  placeholder_text = <i>Input Password...</i>
  hide_input = false
  rounding = -1
  shadow_passes = 0
  shadow_size = 3
  shadow_color = rgba(0, 0, 0, 1.0)
  shadow_boost = 1.200000
  check_color = rgb(204, 136, 34)
  fail_color = rgb(204, 34, 34)
  fail_text = <i>$FAIL</i>
  fail_transition = 300
  capslock_color = -1
  numlock_color = -1
  bothlock_color = -1
  invert_numlock = false
  swap_font_color = false

  position = 0, -100
  halign = center
  valign = center
}

label {
  monitor = 
  text = $TIME
  text_align = 
  color = rgb(ebdbb2)
  font_size = 80
  font_family = JetBrainsMono Nerd Font ExtraBold
  rotate = 0.000000
  shadow_passes = 0
  shadow_size = 3
  shadow_color = rgba(0, 0, 0, 1.0)
  shadow_boost = 1.200000

  position = 0, -200
  halign = center
  valign = top
}

label {
  monitor = 
  text = Hi there, $USER
  text_align = 
  color = rgb(ebdbb2)
  font_size = 18
  font_family = JetBrainsMono Nerd Font
  rotate = 0.000000
  shadow_passes = 0
  shadow_size = 3
  shadow_color = rgba(0, 0, 0, 1.0)
  shadow_boost = 1.200000

  position = 0, -30
  halign = center
  valign = center
}

This is log of hyprlock when ran in terminal

[LOG]   | got iface: wl_shm v1
[LOG]   | got iface: wl_drm v2
[LOG]   | got iface: zwp_linux_dmabuf_v1 v4
[LOG]    > Bound to zwp_linux_dmabuf_v1 v4
[LOG]   | got iface: wl_compositor v6
[LOG]    > Bound to wl_compositor v6
[LOG]   | got iface: wl_subcompositor v1
[LOG]   | got iface: wl_data_device_manager v3
[LOG]   | got iface: zwlr_export_dmabuf_manager_v1 v1
[LOG]   | got iface: zwlr_data_control_manager_v1 v2
[LOG]   | got iface: zwp_primary_selection_device_manager_v1 v1
[LOG]   | got iface: wp_viewporter v1
[LOG]    > Bound to wp_viewporter v1
[LOG]   | got iface: zwlr_gamma_control_manager_v1 v1
[LOG]   | got iface: zwlr_output_power_manager_v1 v1
[LOG]   | got iface: xdg_wm_base v5
[LOG]   | got iface: wl_seat v8
[LOG]    > Bound to wl_seat v8
[LOG]   | got iface: wp_presentation v1
[LOG]   | got iface: ext_idle_notifier_v1 v1
[LOG]   | got iface: zwlr_layer_shell_v1 v4
[LOG]   | got iface: org_kde_kwin_server_decoration_manager v1
[LOG]   | got iface: zxdg_decoration_manager_v1 v1
[LOG]   | got iface: zwlr_output_manager_v1 v4
[LOG]   | got iface: zwlr_input_inhibit_manager_v1 v1
[LOG]   | got iface: zwp_keyboard_shortcuts_inhibit_manager_v1 v1
[LOG]   | got iface: zwp_pointer_constraints_v1 v1
[LOG]   | got iface: zwp_relative_pointer_manager_v1 v1
[LOG]   | got iface: zwp_virtual_keyboard_manager_v1 v1
[LOG]   | got iface: zwlr_virtual_pointer_manager_v1 v2
[LOG]   | got iface: zwlr_foreign_toplevel_manager_v1 v3
[LOG]   | got iface: wp_drm_lease_device_v1 v1
[LOG]   | got iface: zwp_tablet_manager_v2 v1
[LOG]   | got iface: zwp_idle_inhibit_manager_v1 v1
[LOG]   | got iface: zxdg_exporter_v1 v1
[LOG]   | got iface: zxdg_importer_v1 v1
[LOG]   | got iface: zxdg_exporter_v2 v1
[LOG]   | got iface: zxdg_importer_v2 v1
[LOG]   | got iface: zwp_pointer_gestures_v1 v3
[LOG]   | got iface: zwp_text_input_manager_v3 v1
[LOG]   | got iface: zwp_input_method_manager_v2 v1
[LOG]   | got iface: xdg_activation_v1 v1
[LOG]   | got iface: ext_session_lock_manager_v1 v1
[LOG]    > Bound to ext_session_lock_manager_v1 v1
[LOG]   | got iface: wp_cursor_shape_manager_v1 v1
[LOG]    > Bound to wp_cursor_shape_manager_v1 v1
[LOG]   | got iface: wp_tearing_control_manager_v1 v1
[LOG]   | got iface: wp_single_pixel_buffer_manager_v1 v1
[LOG]   | got iface: xwayland_shell_v1 v1
[LOG]   | got iface: hyprland_toplevel_export_manager_v1 v2
[LOG]   | got iface: wp_fractional_scale_manager_v1 v1
[LOG]    > Bound to wp_fractional_scale_manager_v1 v1
[LOG]   | got iface: zwp_text_input_manager_v1 v1
[LOG]   | got iface: hyprland_global_shortcuts_manager_v1 v1
[LOG]   | got iface: zwlr_screencopy_manager_v1 v3
[LOG]    > Bound to zwlr_screencopy_manager_v1 v3
[LOG]   | got iface: zxdg_output_manager_v1 v3
[LOG]   | got iface: wl_output v4
[LOG]    > Bound to wl_output v4
[LOG]   | got iface: wl_output v4
[LOG]    > Bound to wl_output v4
[LOG] [core] dmabufFeedbackMainDevice
DRI driver not from this Mesa build ('23.1.9' vs '24.0.3')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.3')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.3')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.3')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.3')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.3')
failed to bind extensions
[LOG] output 50 make AU Optronics model 0x70EC
[LOG] output 50 name eDP-1
[LOG] output 50 description AU Optronics 0x70EC (eDP-1)
[LOG] output 50 done
[LOG] output 51 make Actek Engineering Pty Ltd model E1973WA
[LOG] output 51 name HDMI-A-1
[LOG] output 51 description Actek Engineering Pty Ltd E1973WA 1E1973WA73400 (HDMI-A-1)
[LOG] output 51 done
[LOG] Running on Hyprland
[LOG] Locking session
[LOG] onLockLocked called
[LOG] got fractional 1
[LOG] configure with serial 23664
[LOG] Configuring surface for logical [Vector2D: x: 1366, y: 768] and pixel [Vector2D: x: 1366, y: 768]
[LOG] got fractional 1
[LOG] configure with serial 23665
[LOG] Configuring surface for logical [Vector2D: x: 1366, y: 768] and pixel [Vector2D: x: 1366, y: 768]
[LOG] PAM_PROMPT: Password:
[LOG] Authenticating
[LOG] auth: authenticated for hyprlock
[LOG] Unlocking session
[LOG] Unlocked, exiting!
[LOG] Reached the end, exiting
vaxerski commented 7 months ago

DRI driver not from this Mesa build ('23.1.9' vs '24.0.3') failed to bind extensions DRI driver not from this Mesa build ('23.1.9' vs '24.0.3') failed to bind extensions DRI driver not from this Mesa build ('23.1.9' vs '24.0.3') failed to bind extensions DRI driver not from this Mesa build ('23.1.9' vs '24.0.3') failed to bind extensions DRI driver not from this Mesa build ('23.1.9' vs '24.0.3') failed to bind extensions DRI driver not from this Mesa build ('23.1.9' vs '24.0.3') failed to bind extensions

I am tired of NixOS' mismatched driver build reports

mobsenpai commented 7 months ago

Bro didn't even give any answer.

vaxerski commented 7 months ago

You're the one using nixos, I am not. Figure it out. Arch doesn't do this. The error is clear.

mobsenpai commented 7 months ago

Figure it out

yep! totally didn't know already. And I wondered why people called this community toxic. I know this isn't a hyprlock's issue and I shouldn't probably have made this issue here, but upon pondering over it, I did, thinking someone will just give a hint or something. Anyways sorry @vaxerski for disturbing.

vaxerski commented 7 months ago

You are:

And yet you are surprised I am not giving you a clear step-by-step spoonfed tutorial on how to fix this. I have no fucking idea how to fix this, I've never touched Nix. If you are looking for a help forum, this ain't it. Discussions, reddit, discord, matrix, all of these exist. Bug reports are not those.

mobsenpai commented 7 months ago

Feel like I am beating a dead fish here but,

coming with an issue clearly unrelated to the project

agreed, I knew it would be the case so I specially mentioned NIXOS as os there, so that experienced nixos users can get the idea

coming with an issue that clearly prints out what's wrong

agreed that it gives some hint, but wasn't clear enough to relate it to blur

using a niche distro which does packaging and dependency management in a very uncommon way

agreed, that's why maybe someone who has used it could have answered

And yet you are surprised I am not giving you a clear step-by-step spoonfed tutorial on how to fix this. I have no fucking idea how to fix this, I've never touched Nix. If you are looking for a help forum, this ain't it. Discussions, reddit, discord, matrix, all of these exist. Bug reports are not those

Didn't ask to be spoonfed. Discussions: couldn't find it, thought this would be the closest way to reach out this particular community. Corrected and posted discussion on hyprland main repo.