New backup 2025-07-05 16:45:02
This commit is contained in:
parent
012daa4ba0
commit
4addfc27ca
2 changed files with 18 additions and 9 deletions
|
@ -9,17 +9,26 @@
|
||||||
:width 300
|
:width 300
|
||||||
:height 150
|
:height 150
|
||||||
:space-evenly true
|
:space-evenly true
|
||||||
(for note in json
|
(for software in json
|
||||||
(button :onclick "kate -n '${note.filepath}'"
|
(button :onclick "notify-send '${software.package_name}'"
|
||||||
(box
|
(box
|
||||||
:orientation "v"
|
:orientation "h"
|
||||||
(label
|
(label
|
||||||
:xalign 0
|
;; :xalign 0
|
||||||
:wrap false
|
:wrap false
|
||||||
:truncate true
|
:truncate false
|
||||||
:text "${replace(note.filepath,"${get_env("HOME")}/Documents/Notes/",'')}")
|
:text "${software.package_name}")
|
||||||
(label
|
(label
|
||||||
:xalign 0.5
|
;; :xalign 0.5
|
||||||
:class "timestamp"
|
:class "timestamp"
|
||||||
:text "${formattime("${note.date}","%F %R")}"))))
|
:text "deb: ${software.package_version}")
|
||||||
|
(label
|
||||||
|
;; :xalign 0.5
|
||||||
|
:class "timestamp"
|
||||||
|
:text "upstream: ${software.upstream_version}")
|
||||||
|
(label
|
||||||
|
;; :xalign 0.5
|
||||||
|
:class "timestamp"
|
||||||
|
:style {(software.up_to_date == "true" ) ? "color: green;" : "color: red;"}
|
||||||
|
:text {(software.up_to_date == "true" ) ? "Up to date!" : "Out of date!"}))))
|
||||||
))
|
))
|
||||||
|
|
|
@ -5,7 +5,7 @@ function get_package_info(){
|
||||||
packages_array=()
|
packages_array=()
|
||||||
|
|
||||||
while read i; do
|
while read i; do
|
||||||
echo "${i}"
|
# echo "${i}"
|
||||||
package_name=$(jq -r '.packageName' <<<"${i}")
|
package_name=$(jq -r '.packageName' <<<"${i}")
|
||||||
upstream_url=$(jq -r '.upstreamURL' <<<"${i}")
|
upstream_url=$(jq -r '.upstreamURL' <<<"${i}")
|
||||||
package_version=$(dpkg-query -W -f='${Version}' "${package_name}")
|
package_version=$(dpkg-query -W -f='${Version}' "${package_name}")
|
||||||
|
|
Loading…
Add table
Reference in a new issue