I've created a widget which works fine but now I'm adding mouse callbacks.
Button1 works as expected for testing but button3 is driving me made as
that notify line works from the command line but in qtile it literally
echoes "$(cat /tmp/network.tmp)" via notify-send instead of the output that
i get doing the same in a terminal like below.
notify-send "$(cat /tmp/network.tmp)"'
The line in my config is
widget.GenPollText(update_interval=1, **widget_defaults, func=lambda:
subprocess.check_output(os.path.expanduser("~/.local/bin/network.sh")).decode(),
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn("dunstify 'Left'"),
'Button3': lambda: qtile.cmd_spawn('notify-send "$(cat
/tmp/network.tmp)"')}),
Someone please help i'm pulling my hair out lol
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/CADrRWNZ4Lr5%3DZf%3Df5K69Fg66xhmktD_nAto-CZTWhaQa0FaqLw%40mail.gmail.com.