Compare commits
No commits in common. "334816ce471af8d584e23ef5a3537bf125c8f17e" and "ee5cb9877d7d0b18980bac32c41ad404523341f1" have entirely different histories.
334816ce47
...
ee5cb9877d
|
@ -105,7 +105,7 @@ textFontData = T.defFontData { T.weight = Just T.Bold, T.size = Just 11 }
|
|||
-- | The icon font family
|
||||
iconFont :: Sometimes T.FontBuilder
|
||||
iconFont = fontSometimes "XMobar Icon Font" "Symbols Nerd Font"
|
||||
[Package Official "ttf-nerd-fonts-symbols-2048-em"]
|
||||
[Package Official "ttf-nerd-fonts-symbols"]
|
||||
|
||||
-- | Offsets for the icons in the bar (relative to the text offset)
|
||||
iconOffset :: BarFont -> Int
|
||||
|
|
|
@ -2,19 +2,27 @@
|
|||
|
||||
# Print list of packages to be installed via pacman
|
||||
|
||||
filter_type () {
|
||||
# echo "$1" | jq --raw-output "select(.type==\"$2\") | .name" | sort | uniq
|
||||
echo "$1" | sed -n "/$2/p" | cut -f2
|
||||
query='.[].success |
|
||||
objects |
|
||||
.root.tree |
|
||||
..|.left?.data, ..|.right?.data, .data? |
|
||||
select(. != null) |
|
||||
.fulfillment |
|
||||
select(. != null) |
|
||||
add | select(. != null)'
|
||||
|
||||
jq_type () {
|
||||
echo "$1" | jq --raw-output "select(.type==\"$2\") | .name" | sort | uniq
|
||||
}
|
||||
|
||||
raw=$(echo -e "$(xmonad --deps)\n$(xmobar --deps)")
|
||||
raw=$(echo -e "$(xmonad --deps | jq "$query")\n$(xmobar --deps | jq "$query")")
|
||||
|
||||
# these are extra packages that pertain to processes outside xmonad but are
|
||||
# still required/desired to make it work correctly
|
||||
xmonad_pkgs=(xorg-xinit xorg-server autorandr picom)
|
||||
|
||||
mapfile -t official < <(filter_type "$raw" "Official")
|
||||
mapfile -t local < <(filter_type "$raw" "AUR")
|
||||
mapfile -t official < <(jq_type "$raw" "Official")
|
||||
mapfile -t local < <(jq_type "$raw" "AUR")
|
||||
|
||||
if ! pacman -Si "${official[@]}" > /dev/null; then
|
||||
echo "At least one official package doesn't exist."
|
||||
|
|
Loading…
Reference in New Issue