mirror of https://github.com/polybar/polybar.git
Updated User contributed modules (markdown)
parent
0d80a32e9f
commit
fa21261c0a
|
@ -29,7 +29,9 @@ chmod +x .config/polybar/pkg.sh
|
||||||
```
|
```
|
||||||
font-3 = FontAwesome:pixelsize=14;0
|
font-3 = FontAwesome:pixelsize=14;0
|
||||||
```
|
```
|
||||||
* Create pkg module
|
|
||||||
|
## Module
|
||||||
|
|
||||||
```
|
```
|
||||||
[module/pkg]
|
[module/pkg]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
|
@ -46,3 +48,31 @@ 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
|
1 check with duckduckgo.com if you're connected to internet
|
||||||
2 check if there are updates
|
2 check if there are updates
|
||||||
3 if yes, it prints left side : pacman updates, right side : aur updates
|
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
|
||||||
|
```
|
Loading…
Reference in New Issue