Last active
October 18, 2025 11:59
-
-
Save fusion809/42c59708465e2b423d4f1b225ec753eb to your computer and use it in GitHub Desktop.
List Wayland compositors available on Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| function list { | |
| yay -Ss "ayland" | grep -v "compositors" | grep -B 1 -i "[Cc]ompositor" | grep -v "\-\-" | sed -e '/-git/{N;d}' | sed -e 'N;/library/D' | sed -e 'N;/a [wW]ayland/D' | sed -e 'N;/Binary space partitioned layout/D' | sed -e 'N;/test/D' | sed -e '/-utils/{N;d}' | sed -e '/greenisland/{N;d}' | sed -e '/stacktile/{N;d}' | sed -e '/-dock/{N;d}' | sed -e '/swaylock/{N;d}' | sed -e '/Orphaned/{N;d}' | |
| } | |
| function pkg_line { | |
| list | sed '0~2d' | |
| } | |
| function pkg_name { | |
| pkg_line | sed 's|.*/||g' | cut -d ' ' -f 1 | |
| } | |
| function pkg_repo { | |
| pkg_line | sed 's|/[^/]*$||' | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment