dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 54b40052f722b1a474b0de5dde1eb7cf5fb7599c
parent 598983aad3a5f36fbdb533828416da92bc9c9c82
Author: Cem Keylan <warc1998@gmail.com>
Date:   Thu, 23 May 2019 14:13:31 +0300

Removed VPN because script no worky worky

Diffstat:
M.config/polybar/config | 12++----------
Dbin/checkforvpn | 8--------
Dbin/vpnswitch | 9---------
3 files changed, 2 insertions(+), 27 deletions(-)

diff --git a/.config/polybar/config b/.config/polybar/config @@ -123,7 +123,7 @@ font-3 = Material Icons:style=Regular:size=13;4 modules-left = i3 bspwm modules-center = todo -modules-right = vpn nightmode xkeyboard filesystem rootfs memory cpu +modules-right = nightmode xkeyboard filesystem rootfs memory cpu tray-position = right tray-padding = 2 @@ -156,7 +156,7 @@ font-3 = Material Icons:style=Regular:size=13;4 modules-left = i3 bspwm modules-center = todo -modules-right = vpn nightmode xkeyboard filesystem rootfs memory cpu +modules-right = nightmode xkeyboard filesystem rootfs memory cpu tray-position = right tray-padding = 2 @@ -361,14 +361,6 @@ ramp-signal-3 =  ramp-signal-4 =  ramp-signal-foreground = ${root.primary} -[module/vpn] -type = custom/script -exec = $HOME/bin/checkforvpn - -click-left = $HOME/bin/vpnswitch -click-right = $HOME/bin/vpnswitch -click-middle = $HOME/bin/vpnswitch - [module/eth] type = internal/network interface = eno1 diff --git a/bin/checkforvpn b/bin/checkforvpn @@ -1,8 +0,0 @@ -#!/usr/bin/python - -import os - -if 'tun0' in os.popen('ip a').read(): - print('Connected ') -else: - print('') diff --git a/bin/vpnswitch b/bin/vpnswitch @@ -1,9 +0,0 @@ -#!/bin/sh - -if [[ $(ip a) == *tun0* ]] -then - zensu kill $(pidof openvpn) -else - zensu openvpn --config $VPNCONFIG & -fi -