It better work
. 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.
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.
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)
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.
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.
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.
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
nwg-panel 0.3.3 released
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.
nwg-panel 0.4.0 released
nwg-panel 0.4.1 released
nwg-drawer 0.1.5 released
nwg-drawer 0.1.6 released
Hot fix to files not opening properly in the file manager in go 1.17.
nwg-drawer 0.1.7 released
File support changed, see README.
nwg-panel 0.4.3 released
Resolved a compatibility issue w/ the latest nwg-drawer version.
nwg-drawer 0.1.8 released
Working great here. Thanks

