yad-weather 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/sh
  2. bg="FAFCFE"
  3. fg="303193"
  4. width=370
  5. height=700
  6. script="$(realpath "$0")"
  7. script="${script%/*}/fmi-weather"
  8. tmp="/tmp/${0##*/}.$$.html"
  9. trap "rm $tmp" EXIT
  10. $script -f html -o "fg=$fg,bg=$bg,width=$width" "$@" > "$tmp"
  11. #~ export GTK_DEBUG=interactive
  12. yad --html --disable-search --print-uri --width=$width --height=$height --title=Weather --window-icon=weather --button=OK:0 --escape-ok --borders=0 \
  13. --css="#yad-dialog-window.background, button { background: #$bg; color: #$fg; }" \
  14. --uri=file://"$tmp" \
  15. --wk-prop="load-icons-ignoring-image-load-setting b:FALSE" \
  16. --wk-prop="enable-xss-auditor b:FALSE" \
  17. --wk-prop="enable-write-console-messages-to-stdout b:FALSE" \
  18. --wk-prop="enable-webaudio b:FALSE" \
  19. --wk-prop="enable-webgl b:FALSE" \
  20. --wk-prop="allow-modal-dialogs b:FALSE" \
  21. --wk-prop="enable-webaudio b:FALSE" \
  22. --wk-prop="enable-accelerated-2d-canvas b:FALSE" \
  23. --wk-prop="enable-dns-prefetching b:FALSE" \
  24. --wk-prop="enable-developer-extras b:FALSE" \
  25. --wk-prop="enable-html5-database b:FALSE" \
  26. --wk-prop="enable-html5-local-storage b:FALSE" \
  27. --wk-prop="enable-hyperlink-auditing b:FALSE" \
  28. --wk-prop="enable-javascript b:FALSE" \
  29. --wk-prop="enable-plugins b:FALSE" \
  30. --wk-prop="enable-cache b:FALSE" \
  31. --wk-prop="enable-offline-web-application-cache b:FALSE" \
  32. --wk-prop="enable-media-stream b:FALSE" \
  33. --wk-prop="enable-site-specific-quirks b:FALSE" \
  34. --wk-prop="enable-spatial-navigation b:FALSE" \
  35. --wk-prop="enable-java b:FALSE" \
  36. --wk-prop="enable-fullscreen b:FALSE" \
  37. --wk-prop="enable-resizable-text-areas b:FALSE" \
  38. --wk-prop="enable-tabs-to-links b:FALSE" \
  39. --wk-prop="media-playback-requires-user-gesture b:TRUE" \
  40. --wk-prop="enable-private-browsing b:TRUE" \
  41. --wk-prop="enable-frame-flattening b:TRUE" \
  42. --wk-prop="enable-smooth-scrolling b:TRUE"
  43. #~ https://webkitgtk.org/reference/webkit2gtk/stable/class.Settings.html