New backup 2025-04-27 00:15:02
This commit is contained in:
parent
b7260e795d
commit
795b878b98
7 changed files with 40 additions and 19 deletions
|
@ -172,11 +172,12 @@ tooltip{
|
|||
.notes {
|
||||
background-color: rgba($color0,0.5);
|
||||
padding: 10px;
|
||||
box {
|
||||
button {
|
||||
background-color: rgba($color9,0.5);
|
||||
border-radius: 6px;
|
||||
padding: 4px 8px;
|
||||
margin: 4px;
|
||||
box {
|
||||
.timestamp {
|
||||
font-size: 0.8em;
|
||||
margin-top: 6px;
|
||||
|
@ -184,6 +185,10 @@ tooltip{
|
|||
}
|
||||
}
|
||||
}
|
||||
button:hover {
|
||||
background-color: rgba($color9,0.65);
|
||||
}
|
||||
}
|
||||
.shortcuts {
|
||||
background-color: rgba($color0,0.5);
|
||||
padding: 15px;
|
||||
|
@ -194,7 +199,7 @@ tooltip{
|
|||
font-size: 1.2em;
|
||||
}
|
||||
button:hover {
|
||||
background-color: rgba($color1,0.5)
|
||||
background-color: rgba($color9,0.65)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,9 +7,11 @@
|
|||
(rat)
|
||||
(weather :json weather_status)
|
||||
(shortcuts)
|
||||
(notes :json {jq(notes_list,'.notes')})))
|
||||
(notes :json {jq(notes_list,'.notes')})
|
||||
(reminders :json {jq(reminders_list,'.reminders')})))
|
||||
|
||||
(include "modules/home/rat.yuck")
|
||||
(include "modules/home/weather.yuck")
|
||||
(include "modules/home/shortcuts.yuck")
|
||||
(include "modules/home/notes.yuck")
|
||||
(include "modules/home/reminders.yuck")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
(defpoll notes_list :interval "60s"
|
||||
(defpoll notes_list :interval "3600s"
|
||||
'scripts/home/notes')
|
||||
(defwidget notes [json]
|
||||
(box
|
||||
|
@ -8,11 +8,6 @@
|
|||
:width 300
|
||||
:height 150
|
||||
:space-evenly true
|
||||
; "${json.condition} ${json.icon}"
|
||||
; "${json.current_temp}°F / ${json.humidity}% "
|
||||
; " ${json.max_temp}°F ${json.min_temp}°F"
|
||||
; " ${json.updated}"))
|
||||
"Notes"
|
||||
(for note in json
|
||||
(button :onclick "kate -n '${note.filepath}'"
|
||||
(box
|
||||
|
@ -25,7 +20,4 @@
|
|||
:xalign 0.5
|
||||
:class "timestamp"
|
||||
:text "${formattime("${note.date}","%F %R")}"))))
|
||||
; (button :onclick {(device.connected == "yes") ? 'bluetoothctl disconnect "${device.address}"' : 'bluetoothctl connect "${device.address}"'}
|
||||
; :class {(device.connected == "yes") ? "active" : ""}
|
||||
; "${device.icon}")) ))
|
||||
))
|
||||
|
|
19
de/home/.config/eww/modules/home/reminders.yuck
Normal file
19
de/home/.config/eww/modules/home/reminders.yuck
Normal file
|
@ -0,0 +1,19 @@
|
|||
(defpoll reminders_list :interval "3600s"
|
||||
'scripts/home/reminders')
|
||||
(defwidget reminders [json]
|
||||
(box
|
||||
:class "notes"
|
||||
:orientation "v"
|
||||
:halign "baseline"
|
||||
:width 300
|
||||
:height 150
|
||||
:space-evenly true
|
||||
(for reminder in json
|
||||
(button :onclick "open '${reminder.url}'"
|
||||
(box
|
||||
:orientation "v"
|
||||
(label
|
||||
:xalign 0
|
||||
:wrap false
|
||||
:text "${reminder.name}"))))
|
||||
))
|
|
@ -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 3 | column -ts $'\t' -n 'Notes' -N date,filepath -J
|
||||
|
|
3
de/home/.config/eww/scripts/home/reminders
Executable file
3
de/home/.config/eww/scripts/home/reminders
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
jq '.' ~/Documents/Reminders/urls.json
|
|
@ -172,8 +172,8 @@ SetEditor=false
|
|||
2 screens: Width=727
|
||||
2048x1280 screen: Height=589
|
||||
2048x1280 screen: Width=999
|
||||
3 screens: Height=298
|
||||
3 screens: Width=604
|
||||
3 screens: Height=700
|
||||
3 screens: Width=419
|
||||
|
||||
[filetree]
|
||||
editShade=183,220,246
|
||||
|
|
Loading…
Add table
Reference in a new issue