diff --git a/de/home/.config/eww/eww.scss b/de/home/.config/eww/eww.scss index ec96dba..140a98a 100644 --- a/de/home/.config/eww/eww.scss +++ b/de/home/.config/eww/eww.scss @@ -172,7 +172,12 @@ tooltip{ .notes { background-color: rgba($color0,0.5); padding: 10px; - + button { + background-color: rgba($color9,0.5); + border-radius: 6px; + padding: 4px 8px; + margin: 4px; + } } .shortcuts { background-color: rgba($color0,0.5); diff --git a/de/home/.config/eww/modules/home/notes.yuck b/de/home/.config/eww/modules/home/notes.yuck index 7eabf2e..923052f 100644 --- a/de/home/.config/eww/modules/home/notes.yuck +++ b/de/home/.config/eww/modules/home/notes.yuck @@ -19,8 +19,9 @@ :xalign 0 :justify "left" :wrap false - :text "${replace(note.filepath,"${get_env("HOME")}/Documents/Notes",'')}aaaaaaaaa - test") + :text "${replace(note.filepath,"${get_env("HOME")}/Documents/Notes/",'')} + +${formattime("${note.date}","%F %R")}") )) ; (button :onclick {(device.connected == "yes") ? 'bluetoothctl disconnect "${device.address}"' : 'bluetoothctl connect "${device.address}"'} ; :class {(device.connected == "yes") ? "active" : ""} diff --git a/de/home/.config/eww/scripts/home/notes b/de/home/.config/eww/scripts/home/notes index 1a5bf95..4bbc440 100755 --- a/de/home/.config/eww/scripts/home/notes +++ b/de/home/.config/eww/scripts/home/notes @@ -1,3 +1,3 @@ #!/usr/bin/env bash -find ~/Documents/Notes/ -type f -exec stat --printf '%y\t%n\n' {} + | sort -rk 1 | head -n 5 | column -ts $'\t' -n 'Notes' -N date,filepath -J +find ~/Documents/Notes/ -type f -exec stat --printf '%Y\t%n\n' {} + | sort -rk 1 | head -n 5 | column -ts $'\t' -n 'Notes' -N date,filepath -J