Custom LxQt Widget #10
skyscrowned
started this conversation in
Show and tell
Replies: 2 comments
|
Hey @skyscrowned, really sorry for the late response, I just opened up the Discussions tab on this repo, so I only saw your post now. This is awesome, thank you for sharing! I love that you wired it into an LxQt panel widget with a YAD popup, you also converting the times to 12-hour AM/PM, nice touch, and the click-to-show window looks clean in your screenshot. Honestly didn't expect to see muslimtify integrated this neatly into a desktop panel, it's exactly the kind of lightweight use case I was hoping the CLI would enable. Really appreciate you taking the time to write it up with the script and image — I'm sure others will find it useful too. Thanks again! |
0 replies
|
in muslimtify version ^0.3.0 this is the fixed scripts RAW_DATA=$(muslimtify show --headless)
FORMATTED_DATA=""
while IFS='=' read -r name time; do
[[ -z "$name" ]] && continue
ampm_time=$(date -d "$time" +"%I:%M%p")
FORMATTED_DATA+="${name^} $ampm_time "
done <<< "$RAW_DATA"
# run YAD
yad --list \
--title="Muslimtify" \
--column="Prayer" --column="Time" \
--width=250 --height=210 \
--no-headers \
--undecorated \
--on-top \
--mouse \
--close-on-unfocus \
--button="Close:0" \
$FORMATTED_DATA |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thank you, this is a super handy app!
Custom LxQt Widget:
-Text:
printf "$(muslimtify next name) in $(muslimtify next remaining)"Click:
[script path (absolute)]
uses YAD
All reactions