Skip to content

Repository files navigation

Negar-GUI

PyPI code size GitHub language count GitHub top language GitHub forks GitHub license GitHub stars GitHub issues Downloads Downloads GitHub last commit

Graphical User interface for negar

Negar's English view Negar's Persian view

Installation

PyPi

python-negar is available on PyPi:

$ pip install negar-gui

Git

You can retrieve the latest stable changes from the GitHub server:

$ git clone https://github.com/javadr/negar-gui.git
$ cd negar-gui
$ python setup.py install

Zip, Tarball

You can download the latest tarball.

*nix

Get the latest tarball & install:

$ wget -O negar-gui-master.tar.gz https://github.com/javadr/negar-gui/archive/master.tar.gz
$ tar xvzf negar-gui-master.tar.gz && cd negar-gui-master
$ python setup.py install

Windows

Download the latest zip archive.

https://github.com/javadr/negar-gui/archive/master.zip

Decompress it, and run the following command in the root directory of negar-gui

$ python setup.py install

Requirements

The GUI is relied on python-negar as well as PyQt5/6, pyperclip, pyuca, redlines, regex, requests, qrcode, docopt, Image, pyqtdarktheme, and toml. If you want to just run it by calling the script, you need to install its dependencies.

$ pip install python-negar PyQt5 PyQt6 pyuca pyperclip redlines regex requests qrcode docopt Image pyqtdarktheme toml

Usage

Just use one of the following in your terminal.

$ negar-gui

or simply

$ negar

Docker

A Docker image is available on Docker Hub:

$ docker pull javadr/negar-gui

Build it locally:

$ make docker-build

Run on X11

$ docker run --rm \
    -e DISPLAY=$DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v $HOME/.config/negar-gui:/home/negar/.config/negar-gui \
    javadr/negar-gui

Run on Wayland

$ docker run --rm \
    -e QT_QPA_PLATFORM=wayland \
    -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
    -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY \
    -v $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY \
    --device /dev/dri \
    -v $HOME/.config/negar-gui:/home/negar/.config/negar-gui \
    javadr/negar-gui

Auto-detect (via Makefile)

$ make docker-run

About

Graphical User Interface for Negar -- Persian Text Editor

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages