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.5.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.5-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snxtray-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 b38dd89a368c3d5ffc1f7defa38e719c360bd32dd78c5a4032c1750ba07f7e7f
MD5 43f764b67422a51659ab3738809212d2
BLAKE2b-256 51cdcd348b3e11d82f3d061bb7be843fa550aed9a97e4654b9e4145db768889b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snxtray-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 63b55ad1bc82b10997854a486367cfbd0f821f4bd39480ab4b540022547755d3
MD5 01d08bafb2f2c42c79116feae9584850
BLAKE2b-256 4059cff459bc337fedf3c01990eedf3bbefa02639b4fc1178b07ae84cca3c202

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