dotfiles/scripts/archlinux-packages-menu

7 lines
197 B
Text
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
if package="$(expac --sync '%r/%a/%n %v - %d' | rofi -dmenu)" && [[ -n "$package" ]]; then
xdg-open "https://www.archlinux.org/packages/${package%% *}/"
fi