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

Uploaded Python 3

File details

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

File metadata

  • Download URL: snxtray-0.0.6.tar.gz
  • Upload date:
  • Size: 15.7 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.6.tar.gz
Algorithm Hash digest
SHA256 40461d1118685e0a29d75923c2a697235d46d282b416db56b1bfd050fd0c91ca
MD5 ca6b86cc3fe3fdfada0f35dce86197dc
BLAKE2b-256 65dae3e209a191b510b9f797e258eee33e3e35c7cf75754e612edeca98fbd099

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snxtray-0.0.6-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.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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fc9bd667bbd3dfd81006a7fd57a69c397be7d0744dff34d895b9ce99256c3a8e
MD5 b2277fe9a9379594129b322b543b3f75
BLAKE2b-256 2804cca99a78676574900dda62429ab1421e0107b180a90ac2c733632c04291c

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