From fa21261c0ac786e81292f4cf1f8ff997313a7cb3 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Sat, 14 Jan 2017 13:05:25 +0100 Subject: [PATCH] Updated User contributed modules (markdown) --- User-contributed-modules.md | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/User-contributed-modules.md b/User-contributed-modules.md index 9071917..11a7564 100644 --- a/User-contributed-modules.md +++ b/User-contributed-modules.md @@ -29,7 +29,9 @@ chmod +x .config/polybar/pkg.sh ``` font-3 = FontAwesome:pixelsize=14;0 ``` -* Create pkg module + +## Module + ``` [module/pkg] type = custom/script @@ -45,4 +47,32 @@ exec-if = "ping -q -w 2 -c 1 176.34.135.167 > /dev/null" 1 check with duckduckgo.com if you're connected to internet 2 check if there are updates -3 if yes, it prints left side : pacman updates, right side : aur updates \ No newline at end of file +3 if yes, it prints left side : pacman updates, right side : aur updates + +# openVPN + +![vpn](http://ptpb.pw/GktG.png) + +## Dependencies + +* [aur: ttf-font-awesome](https://aur.archlinux.org/packages/ttf-font-awesome/) + +## Setup + +* Add awesome font in polybar +``` +font-3 = FontAwesome:pixelsize=14;0 +``` + +## Module + +``` +[module/vpncheck] +type = custom/script +exec = pgrep openvpn +interval = 5 +label = vpn +format-underline = #268bd2 +format-prefix = " " +format-prefix-foreground = #5b +``` \ No newline at end of file