Skip to main content

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

Release files for snxtray 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snxtray 0.0.7
File Size Uploaded
snxtray-0.0.7.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snxtray 0.0.7
File Interpreter ABI Platform
snxtray-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 57.5 kB

Release files / snxtray-0.0.7.tar.gz

Download URL snxtray-0.0.7.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5ce74bee61f63a35c6b66c83622390b6dfb3dee6b06e51216edc27704e47b0e4
BLAKE2b-256 checksum
How to use checksums
42d8dfcdeaba65656f5fe0bef43a154b57c4ddb11d63daca31112e1516adb5cc
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / snxtray-0.0.7-py3-none-any.whl

Download URL snxtray-0.0.7-py3-none-any.whl
Size 40.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe8741b9676b30fd6108c2834c9febb59ab52512f8848c23cc8ca37462f83867
BLAKE2b-256 checksum
How to use checksums
3cae944d6e87b97238db8771ed05fc86694574d30933fda0769a4e0575bce5c4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page