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
|
||||
:height 150
|
||||
:space-evenly true
|
||||
(for note in json
|
||||
(button :onclick "kate -n '${note.filepath}'"
|
||||
(for software in json
|
||||
(button :onclick "notify-send '${software.package_name}'"
|
||||
(box
|
||||
:orientation "v"
|
||||
:orientation "h"
|
||||
(label
|
||||
:xalign 0
|
||||
;; :xalign 0
|
||||
:wrap false
|
||||
:truncate true
|
||||
:text "${replace(note.filepath,"${get_env("HOME")}/Documents/Notes/",'')}")
|
||||
:truncate false
|
||||
:text "${software.package_name}")
|
||||
(label
|
||||
:xalign 0.5
|
||||
;; :xalign 0.5
|
||||
: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=()
|
||||
|
||||
while read i; do
|
||||
echo "${i}"
|
||||
# echo "${i}"
|
||||
package_name=$(jq -r '.packageName' <<<"${i}")
|
||||
upstream_url=$(jq -r '.upstreamURL' <<<"${i}")
|
||||
package_version=$(dpkg-query -W -f='${Version}' "${package_name}")
|
||||
|
|
Loading…
Add table
Reference in a new issue