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.7.tar.gz (17.1 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.7-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snxtray-0.0.7.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 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.7.tar.gz
Algorithm Hash digest
SHA256 5ce74bee61f63a35c6b66c83622390b6dfb3dee6b06e51216edc27704e47b0e4
MD5 bd284b1a2792909f19c86a5264da3f2c
BLAKE2b-256 42d8dfcdeaba65656f5fe0bef43a154b57c4ddb11d63daca31112e1516adb5cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snxtray-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 40.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fe8741b9676b30fd6108c2834c9febb59ab52512f8848c23cc8ca37462f83867
MD5 14b4a2b6139ecde6eeebb69eb340107f
BLAKE2b-256 3cae944d6e87b97238db8771ed05fc86694574d30933fda0769a4e0575bce5c4

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