Skip to content

Commit 0eb0dfb

Browse files
committed
Updated logic to only show upcoming events, past are not shown
1 parent cdbc873 commit 0eb0dfb

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

khal-agenda-widget/DesktopWidget.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ DraggableDesktopWidget {
2323
// Main data process
2424
Process {
2525
id: calProc
26-
command: ["sh", "-c", "khal list today 7d --format '{start-time} {title}' --day-format '{name}, {date}'"]
26+
command: ["sh", "-c", "khal list --notstarted now 7d --format '{start-time} {title}' --day-format '{name}, {date}'"]
2727
// command: ["sh", "-c", "khal list today 7d --format '{start-end-time-style} {title}' --day-format '{name}, {date}'"]
2828
running: root.pluginApi !== null
2929
stdout: StdioCollector {
@@ -39,7 +39,7 @@ DraggableDesktopWidget {
3939
"for term in xdg-terminal-exec kitty alacritty foot gnome-terminal konsole st xterm; do " +
4040
"if command -v $term >/dev/null 2>&1; then " +
4141
"if [ \"$term\" = \"kitty\" ]; then " +
42-
"exec kitty --class khal -e ikhal; " +
42+
"exec kitty --config ~/.config/kitty/calendar.conf --class khal -e ikhal; " +
4343
"else " +
4444
"exec $term -e ikhal 2>/dev/null || exec $term -- ikhal; " +
4545
"fi; break; fi; done"

khal-agenda-widget/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
A theme aware Noctalia desktop plugin that displays agenda information.
55

66
## Features
7-
Shows the next 7 days of events.
7+
Shows upcoming events for the next 7 days of events.
88
Icon click to open the full calendar.
99

1010
## Configuration

khal-agenda-widget/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"widget": {
33
"loading": "Loading...",
44
"no_events": "No upcoming events",
5-
"heading": "Agenda for 7 days.",
5+
"heading": "Upcoming events",
66
"button": "calendar-month"
77
}
88
}

khal-agenda-widget/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "khal-agenda-widget",
33
"name": "Khal Agenda Info",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"minNoctaliaVersion": "4.6.6",
66
"author": "Simon",
77
"license": "MIT",

khal-agenda-widget/preview.png

-3.18 KB
Loading

0 commit comments

Comments
 (0)