From 5505b1c10b5edf4b0757ae653cb464345682e923 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Sat, 14 Jan 2017 12:56:16 +0100 Subject: [PATCH] Updated User contributed configs (markdown) --- User-contributed-configs.md | 49 ++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/User-contributed-configs.md b/User-contributed-configs.md index 90a1d60..9071917 100644 --- a/User-contributed-configs.md +++ b/User-contributed-configs.md @@ -1 +1,48 @@ -... \ No newline at end of file +# Archlinux updates + +![pkg](http://ptpb.pw/IgGS.png) + +## Dependencies + +* [aur: cower](https://aur.archlinux.org/packages/cower/) +* [aur: ttf-font-awesome](https://aur.archlinux.org/packages/ttf-font-awesome/) + +## Setup +* Create ``.config/polybar/pkg.sh`` script +``` +cat << EOF > $HOME/.config/polybar/pkg.sh +#!/bin/bash +pac=$(checkupdates | wc -l) +aur=$(cower -u | wc -l) + +check=$((pac + aur)) +if [[ "$check" != "0" ]] +then + echo "$pac %{F#5b5b5b}%{F-} $aur" +fi +EOF +chmod +x .config/polybar/pkg.sh +``` + + +* Add awesome font in polybar +``` +font-3 = FontAwesome:pixelsize=14;0 +``` +* Create pkg module +``` +[module/pkg] +type = custom/script +interval = 1200 +format =