Skip to content

Instantly share code, notes, and snippets.

@fusion809
Last active October 18, 2025 11:59
Show Gist options
  • Save fusion809/42c59708465e2b423d4f1b225ec753eb to your computer and use it in GitHub Desktop.
Save fusion809/42c59708465e2b423d4f1b225ec753eb to your computer and use it in GitHub Desktop.
List Wayland compositors available on Arch Linux
#!/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