Closed djelenc closed 3 months ago
do other commands work or is it just swaylock
@vaxerski Now I'm faced with the same problem, the trigger to open the lid switch:off
is simply ignored.
The same goes for a switch trigger.
It is possible that this is a problem with the device itself, but previously with exactly the same configuration everything worked on this commit
I realized that the trigger is ignored simply by running stub scripts
lid-close.sh
#!/usr/bin/env bash
echo "LID CLOSE..." >> /tmp/switch.log
lid-open,sh
#!/usr/bin/env bash
echo "LID OPEN..." >> /tmp/switch.log
~/.config/hypr/hyprland.conf
bind=,switch:on:Lid Switch,exec,/home/stepan/lid-close.sh
bind=,switch:off:Lid Switch,exec,/home/stepan/lid-open.sh
After that:
tail -f /tmp/switch.log
Сlose the lid and see LID CLOSE...
, open it, nothing.
You can swap them or pass any of them to:
bind=,switch:Lid Switch,exec,/home/stepan/lid-open.sh
The result will not change, only the lid closing trigger will work.
do other commands work or is it just swaylock?
The same with others. I used the same shell script as @MOIS3Y, and it only registered the closing event. The lid-opening event was missed.
Probably because your laptop is still asleep when the switch goes off
on my setup I just have hyprlock --immediate-render --immediate --no-fade-in & playerctl pause
as pre suspend comand in hypridle. That way I achieve exactly what you are trying to do here
alternatively, just make it run something like swaylock & systemctl suspend
when the lid is closed
this should be fixed by https://github.com/hyprwm/aquamarine/commit/339337cc7b32ddda02f874817059a426bcf4ef16
Regression?
Yes
System Info and Version
System/Version info
```sh Hyprland, built from branch at commit a0d15a0b7b066cbb1b08ac54cf882c2c55467e4a (). Date: 2024-07-25 Tag: , commits: a0d15a0b7b066cbb1b08ac54cf882c2c55467e4a flags: (if any) System Information: System name: Linux Node name: idea Release: 6.10.0 Version: #1-NixOS SMP PREEMPT_DYNAMIC Sun Jul 14 22:43:32 UTC 2024 GPU information: 64:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev c7) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.11.20240721.68c9ed8" DOCUMENTATION_URL="https://nixos.org/learn.html" HOME_URL="https://nixos.org/" ID=nixos IMAGE_ID="" IMAGE_VERSION="" LOGO="nix-snowflake" NAME=NixOS PRETTY_NAME="NixOS 24.11 (Vicuna)" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.11 (Vicuna)" VERSION_CODENAME=vicuna VERSION_ID="24.11" plugins: ======Config-Start====== Config File: /home/david/.config/hypr/hyprland.conf: Read Succeeded exec-once = /nix/store/wbqwrp6gpf31acmdchik5lsj8zdw2z24-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target $mainMod=SUPER animations { bezier=myBezier, 0.05, 0.9, 0.1, 1.05 animation=windows, 1, 7, myBezier animation=windowsOut, 1, 7, default, popin 80% animation=border, 1, 10, default animation=borderangle, 1, 8, default animation=fade, 1, 7, default animation=workspaces, 1, 2, default, slidevert enabled=yes } decoration { blur { enabled=true passes=1 size=3 } col.shadow=rgba(1d202199) drop_shadow=yes rounding=8 shadow_range=4 shadow_render_power=3 } dwindle { preserve_split=yes pseudotile=yes } general { allow_tearing=false border_size=2 col.active_border=rgb(83a598) col.inactive_border=rgb(665c54) gaps_in=4 gaps_out=4 layout=dwindle } gestures { workspace_swipe=on } group { groupbar { col.active=rgb(83a598) col.inactive=rgb(665c54) text_color=rgb(d5c4a1) } col.border_active=rgb(83a598) col.border_inactive=rgb(665c54) col.border_locked_active=rgb(8ec07c) } input { touchpad { natural_scroll=no } follow_mouse=2 kb_layout=us,si kb_options=grp:win_space_toggle numlock_by_default=true repeat_delay=300 repeat_rate=50 sensitivity=0 } misc { background_color=rgb(1d2021) disable_hyprland_logo=true force_default_wallpaper=0 } xwayland { force_zero_scaling=true } bind=$mainMod, T, exec, alacritty bind=$mainMod, Q, killactive, bind=$mainMod, M, fullscreen, 1 bind=$mainMod SHIFT, Q, exit, bind=$mainMod, F, exec, nautilus bind=$mainMod, G, togglefloating, bind=$mainMod, O, togglesplit, # dwindle bind=$mainMod, h, movefocus, l bind=$mainMod, l, movefocus, r bind=$mainMod, k, movefocus, u bind=$mainMod, j, movefocus, d bind=$mainMod CONTROL, j, workspace, +1 bind=$mainMod CONTROL, k, workspace, -1 bind=$mainMod SHIFT, j, movetoworkspace, +1 bind=$mainMod SHIFT, k, movetoworkspace, -1 bind=$mainMod SHIFT, h, movewindow, l bind=$mainMod SHIFT, l, movewindow, r bind=LALT,Tab,cyclenext, bind=LALT,Tab,bringactivetotop, bind=, xf86audiomute, exec, swayosd-client --output-volume mute-toggle bind=, xf86audiomicmute, exec, swayosd-client --input-volume mute-toggle bind=$mainMod, escape, exec, swaylock binde=, xf86audioraisevolume, exec, swayosd-client --output-volume raise binde=, xf86audiolowervolume, exec, swayosd-client --output-volume lower binde=, xf86monbrightnessup, exec, swayosd-client --brightness raise binde=, xf86monbrightnessdown, exec, swayosd-client --brightness lower bindl=,switch:off:Lid Switch, exec, swaylock bindm=$mainMod, mouse:272, movewindow bindm=$mainMod, mouse:273, resizewindow bindr=$mainMod, SUPER_L, exec, pkill fuzzel || fuzzel env=XCURSOR_SIZE,64 env=GDK_SCALE,1.25 exec-once=/nix/store/zxk8b9044vi44pbc2099c2s89rp5dcr7-waybar-0.10.4/bin/waybar exec-once=/nix/store/8l6brs42v31i96fbw27xzvd43dzm1f0k-wlsunset-0.4.0/bin/wlsunset -l 46 -L 14.5 exec-once=/nix/store/jsv79icwlajx0la8r0dz4pm3yhrn8jsq-network-manager-applet-1.36.0/bin/nm-applet --indicator exec-once=/nix/store/niajl3flzzw766ldxavsvy2irvk4ygk8-blueman-2.4.2/bin/blueman-applet exec-once=/nix/store/fwhzkkjkdhn0rkyfzbbf32zp5vhmsih3-nextcloud-client-3.13.2/bin/nextcloud monitor=,preferred,auto,1.25 windowrulev2=float,class:^(org.kde.polkit-kde-authentication-agent-1)$ windowrulev2=float,class:^(pavucontrol)$ windowrulev2=float,class:^(com.nextcloud.desktopclient.nextcloud)$ windowrulev2=float,class:(blueman) windowrulev2=float,class:^(org.keepassxc.KeePassXC)$ windowrulev2=float,initialTitle:(All Files) windowrulev2=move 45% 2.9%,class:^(gsimplecal)$ ======Config-End======== ```Description
After the lid is open and computer resumes from sleep the call to
swaylock
is not executed. This is the line in the config that worked before AQ.How to reproduce
Use the provided configuration, close the lid so the computer goes on standby, and reopen the lid. The command
swaylock
is not run.Crash reports, logs, images, videos
No response