Nwg-shell for sway Wayland compositor

nwg-drawer 0.1.4 released

3 Likes

Working on experimental support for images in nwg-wrapper.

2021-07-16-020309_screenshot.png

2021-07-16-025640_screenshot.png

7 Likes

It better work :laughing:. That is amazing @nwg! I'm using that straight away when it's ready.

You made conky for wayland. I won't tell you how many tines I've searched that up but you've done what loads of people have been waiting for ages.

2 Likes

LOL, a very simplified substitute. I’m not a big fan of Conky, but it may be useful sometimes. I’ll PR and merge the branch containing image support tonight.

4 Likes

I wanted to say this…but I knew what his reaction would be. Lol…yes, he did make a subset of conky functionality (- the language embedded I think).
So, what is next on your radar, sir (@nwg)

2 Likes

I’m not sure. I should write a golang version of nwgdmenu, but it’s a boring task, as I use this command hardly ever. I’d rather have something more interesting to do in this infernal heat.

3 Likes

Hmm, heat did you say? I'd love to hear your idea of heat. We've been 35C and about 90% humidity for the last week. You may indeed beat me, as I'm one of the cooler places in the US it seems.

3 Likes

Well, not that bad here: up to 33C today. But most part of my life temperatures above 30 were an exception here. Hardly anyone in PL has AC in the house, so this year we needed to buy a personal fan for each human being. Now it's 1:30 am, 20C outside and 27 inside.

2 Likes

nwg-wrapper 0.0.2 released

Description here

@OdiousImp You may use just some simple .pango file or modify the script to your needs:

#!/usr/bin/env python3

import subprocess
import os
import sys


def get_output(command):
    try:
        output = subprocess.check_output(command, shell=True).decode("utf-8").strip()
    except Exception as e:
        output = e
        sys.stderr.write("{}\n".format(e))

    return output


def main():
    time = get_output("date +'%A, %d. %B'")
    
    # place your image path here
    print('#img path=/home/piotr/Obrazy/header.svg width=400 height=40')
    
    print('<span size="35000" foreground="#998000">{}</span>'.format(time))
    wttr = get_output("curl https://wttr.in/?format=1")
    print('<span size="25000" foreground="#ccc">{}</span>'.format(wttr))
    print('<span font_family="monospace" foreground="#fff" size="12000"><i>SYSTEM -------------------------------------</i>')
    print('</span>')
    uname = os.getenv("USER")
    host = get_output("uname -n")
    kernel = get_output("uname -sr")
    print('<span font_family="monospace" foreground="#fff" size="12000">{}@{} {}'.format(uname, host, kernel))
    print(get_output("sway -v") + "</span>")

    print('<span font_family="monospace" foreground="#fff" size="12000">')
    print('<i>KEY BINDINGS -------------------------------</i>\n')
    print('Alt + F1                  application drawer')
    print('Mod + T                    Terminal emulator')
    print('Mod + W                          Web browser')
    print('Mod + E                          text Editor')
    print('Mod + A                    wallpaper manager')
    print('Mod + F                         File manager\n')

    print('Alt + Q                            kill task')
    print('Mod + X                            eXit menu')
    print('Mod + Shift + C                  reload sway\n')

    print('Alt + number                to workspace num')
    print('Alt + Shift + number  container to workspace')
    print('Mod + Shift + arrow           move container\n')
    print('Mod + Shift + Space          toggle floating')
    print('Alt + Tab                      toggle layout')
    print('Mod + Shift + F                   Fullscreen\n')

    print('Mod + Shift + Z           move to scratchpad')
    print('Mod + Z                      show scratchpad')
    print('PrtScr                            screenshot')
    print('Shift + Ctrl + PrtScr        screenshot area</span>\n')


if __name__ == '__main__':
    main()

Sample command:

nwg-wrapper -s /path/to/the/script.py -r 600000 -c some_style_here.css -p left -a start -j center -ml 50 -mt 50

5 Likes

nwg-panel 0.3.3 released

2 Likes

The header image I'm wondering where you got it from? Did you make it yourself?

If I remember well: logo from the forum header and some text added in Inkscape.

2 Likes

nwg-panel 0.4.0 released

3 Likes

nwg-panel 0.4.1 released

2 Likes

nwg-drawer 0.1.5 released

1 Like

nwg-drawer 0.1.6 released

Hot fix to files not opening properly in the file manager in go 1.17.

2 Likes

nwg-drawer 0.1.7 released

File support changed, see README.

4 Likes

nwg-panel 0.4.3 released

Resolved a compatibility issue w/ the latest nwg-drawer version.

2 Likes

nwg-drawer 0.1.8 released

4 Likes

Working great here. Thanks

4 Likes