Giter VIP home page Giter VIP logo

hotspot_toggle_tray_icon's Introduction

Hotspot toggle tray icon

This script creates a tray icon that shows whether your wireless connection is in hotspot mode or not. When you click on it - the app toggles the hotspot config.

How does it work? Dependencies

I wrote the app, because the built in settings in KDE couldn't activate my wireless adapter as a hotspot properly (some WPA shenanigans), but create_ap could. So I wanted to have a GUI for that.

In Arch based distros create_ap comes with a systemd service unit (sorry, I haven't tested other distros). This extension just polls the state of the create_ap service every second and changes the icon respectively. On click it either starts and enables or stops and disables the create_ap service (that's why you will get two password prompts). I found no simple and safe solution to let the app work without a password prompt.

I use the Qt library (PySide2 = Qt python bindings), so you need to have python and pyside2 installed.

After you install create_ap it's preferable that you test it in the terminal. You'll probably need to edit /etc/create_ap.conf with your ethernet and wifi adapter names (terminal:"ip addr" or "ifconfig"), as well as a name (SSID) and password for the hotspot. Here's the Arch wiki for reference.

In order to start the indicator on boot you can add it as an autostart entry. In KDE there's Autostart in the settings, in GNOME - via Tweak tools. To do it yourself you can use Arronax.

If anyone wants to package the script or add features I'd be happy to collaborate.

hotspot_toggle_tray_icon's People

Contributors

v-ko 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.