Skip to content

Instantly share code, notes, and snippets.

@cg505
Created May 7, 2020 21:24
Show Gist options
  • Select an option

  • Save cg505/9551cd5b0b063a64f4f1d1b92ac7a34f to your computer and use it in GitHub Desktop.

Select an option

Save cg505/9551cd5b0b063a64f4f1d1b92ac7a34f to your computer and use it in GitHub Desktop.
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = usr/lib/udev/rules.d/61-gdm.rules
[Action]
Description = Removing Wayland GDM restrictions
When = PostTransaction
# comments any lines containing "/usr/lib/gdm-disable-wayland"
Exec = /usr/bin/sed -Ei "/\/usr\/lib\/gdm-disable-wayland/s/^([^#])/#commented by \/etc\/pacman.d\/hooks\/gdm-wayland.hook\n#\1/" /usr/lib/udev/rules.d/61-gdm.rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment