Giter Site home page Giter Site logo

pivaldi / awesomewm-mullvad Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

Awesomewm widget to monitor the current Mullvad VPN connection status and provides a simple menu to (re)connect and disconnect the VPN.

License: GNU General Public License v3.0

Lua 100.00%

awesomewm-mullvad's Introduction

Awesomewm-Mullvad VPN Widget is an Awesomewm widget to monitor the current Mullvad VPN connection status and provides a simple menu to (re)connect and disconnect the VPN.

The widget in action :

  1. Real-time status connection with a tooltip on mouse hover (connection up)
  2. Real-time status connection with connection down
  3. Menu to Connect/Disconnect accessible clicking in the widget

    screenshot widget with menu

Customization

It is possible to customize the widget by providing a table with all or some of the following config parameters :

Name Default Description
connect_options "--wait"
timeout 10 The refresh timeout
format_ok '<span color="#22FF22">⚛</span>' The markup format to use when connection is up
format_ko '<span color="#FF2222">☠</span>' The markup format to use when connection is down
font beautiful.font The font to use in the widget bar/tooltip
cli_path "/usr/bin/mullvad" mullvad command path.

Usage

local mullvad_widget = require("awesomewm-mullvad.widget")

…

    -- Add widgets to the wibox
    s.mywibox:setup {
      layout = wibox.layout.align.horizontal,
      { -- Left widgets
…
      },
      s.mytasklist, -- Middle widget
      { -- Right widgets
        layout = wibox.layout.fixed.horizontal,
 …
          mullvad_widget({}),
…

awesomewm-mullvad's People

Contributors

pivaldi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.