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,17 +172,22 @@ tooltip{
|
||||||
.notes {
|
.notes {
|
||||||
background-color: rgba($color0,0.5);
|
background-color: rgba($color0,0.5);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
box {
|
button {
|
||||||
background-color: rgba($color9,0.5);
|
background-color: rgba($color9,0.5);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
.timestamp {
|
box {
|
||||||
font-size: 0.8em;
|
.timestamp {
|
||||||
margin-top: 6px;
|
font-size: 0.8em;
|
||||||
color: rgba($color7,1)
|
margin-top: 6px;
|
||||||
|
color: rgba($color7,1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
button:hover {
|
||||||
|
background-color: rgba($color9,0.65);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.shortcuts {
|
.shortcuts {
|
||||||
background-color: rgba($color0,0.5);
|
background-color: rgba($color0,0.5);
|
||||||
|
@ -194,7 +199,7 @@ tooltip{
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
button:hover {
|
button:hover {
|
||||||
background-color: rgba($color1,0.5)
|
background-color: rgba($color9,0.65)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,11 @@
|
||||||
(rat)
|
(rat)
|
||||||
(weather :json weather_status)
|
(weather :json weather_status)
|
||||||
(shortcuts)
|
(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/rat.yuck")
|
||||||
(include "modules/home/weather.yuck")
|
(include "modules/home/weather.yuck")
|
||||||
(include "modules/home/shortcuts.yuck")
|
(include "modules/home/shortcuts.yuck")
|
||||||
(include "modules/home/notes.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')
|
'scripts/home/notes')
|
||||||
(defwidget notes [json]
|
(defwidget notes [json]
|
||||||
(box
|
(box
|
||||||
|
@ -8,11 +8,6 @@
|
||||||
:width 300
|
:width 300
|
||||||
:height 150
|
:height 150
|
||||||
:space-evenly true
|
: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
|
(for note in json
|
||||||
(button :onclick "kate -n '${note.filepath}'"
|
(button :onclick "kate -n '${note.filepath}'"
|
||||||
(box
|
(box
|
||||||
|
@ -25,7 +20,4 @@
|
||||||
:xalign 0.5
|
:xalign 0.5
|
||||||
:class "timestamp"
|
:class "timestamp"
|
||||||
:text "${formattime("${note.date}","%F %R")}"))))
|
: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
|
#!/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
|
2 screens: Width=727
|
||||||
2048x1280 screen: Height=589
|
2048x1280 screen: Height=589
|
||||||
2048x1280 screen: Width=999
|
2048x1280 screen: Width=999
|
||||||
3 screens: Height=298
|
3 screens: Height=700
|
||||||
3 screens: Width=604
|
3 screens: Width=419
|
||||||
|
|
||||||
[filetree]
|
[filetree]
|
||||||
editShade=183,220,246
|
editShade=183,220,246
|
||||||
|
|
Loading…
Add table
Reference in a new issue