Skip to main content

Systray for snx

Project description

SNX Tray

Tray Icon for snx

Install

pip install snxtray

Ubuntu 18.04 LTS wx build dependencies:

make gcc libgtk-3-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python-gst-1.0 python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev

Configuration

Example config

cat $HOME/.config/snxtray.json

{
  "server": "IP/URL",
  "cert": "path to cert",
  "keep_passwd": false,
  "elevate": "pkexec",
  "post-up": [["exsample", "-u"]],
  "post-down": [["exsample", "-d", "arg2"]]
}

Note: if elevate is not set to hooks this string is added as an prefix to the snx command post-up/down are optional

Use root Hooks

To use root Hooks you need to configure your snxtray with cert, server and set elevate to hooks.
Then you can run sudo -E snxtray --init-hooks this create the file structure in /etc/snxtray and configures the up hook with the values of your config Note: all users that use hooks will use the same configuration

You now can edit the post-down and post-up to call commands with root permissions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snxtray-0.0.4.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snxtray-0.0.4-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file snxtray-0.0.4.tar.gz.

File metadata

  • Download URL: snxtray-0.0.4.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for snxtray-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5734ec3921564c680804e899e81fe76282c6110ab97864bbc57fb8faf902eb0c
MD5 0c71b1c7754c9000b57737ff9b6c3dae
BLAKE2b-256 bccc268e9bd2afe01711fa62ab75992a96329c3b72a6f342076ed54978b6db80

See more details on using hashes here.

File details

Details for the file snxtray-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: snxtray-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for snxtray-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 63635c16a618c9a863a62d805ad89160408f7fa565b51f3c2dc9b5076f8e3996
MD5 e55d57ddc1a911410563d88332de71a9
BLAKE2b-256 2542c831b088d2f42ea67369ddd4d6906a0f5c287afec29333387d0b9a5838d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page