JaKooLit / Hyprland-Dots

Hyprland dotfiles - used as main repo for all my Hyprland Install Scripts.
GNU General Public License v3.0
975 stars 126 forks source link

[Bug]: Fix laptop-lid action (to erase the last entry) #412

Closed devax closed 2 months ago

devax commented 2 months ago

Bug Report

Description

There seems to be an error in Laptops.conf which prevents the laptop monitor to be reset properly, when the feature is enabled.

In Laptops.conf, this line: exec-once = echo "eDP-1, preferred, auto, 1" > $HOME/.config/hypr/UserConfigs/LaptopDisplay.conf shold be changed to this: exec-once = echo "monitor = eDP-1, preferred, auto, 1" > $HOME/.config/hypr/UserConfigs/LaptopDisplay.conf

Steps to Reproduce

  1. Edit Laptops.conf: Enable the last section about laptop lids (the LaptopDisplay.conf option)
  2. Close, then re-open laptop lid
  3. Reboot

Expected Behavior

No warning visible after login

Actual Behavior

Warning visible: "Config error in file ~/.config/hypr/UserConfigs/LaptopDisplay.conf at line 2: Invalid config line"

JaKooLit commented 2 months ago

https://github.com/JaKooLit/Hyprland-Dots/commit/08908174365672175e767c6fd5abe3f1a049e2be

Thanks lot..