Custom LxQt Widget #10
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! |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
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
Beta Was this translation helpful? Give feedback.
All reactions