diff options
| author | Mike Vink <ivi@vinkies.net> | 2024-01-16 21:04:32 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2024-01-16 21:04:32 +0100 |
| commit | 902e9a96aa3ef853139c5af402d2f5bd83b96a38 (patch) | |
| tree | 4957200b12cfe46068082d1ba2e90aedfa1cc217 | |
| parent | c74aa1133981264f54eb0bdf5533d3164a4828fb (diff) | |
sync calendars
| -rwxr-xr-x | mut/bin/sb-clock | 5 | ||||
| -rw-r--r-- | mut/neovim/init.lua | 2 | ||||
| -rw-r--r-- | profiles/email/mailsync.nix | 2 | ||||
| -rw-r--r-- | profiles/email/neomutt.nix | 3 | ||||
| -rw-r--r-- | profiles/email/notmuch.nix | 2 | ||||
| -rw-r--r-- | profiles/email/server.nix | 2 | ||||
| -rw-r--r-- | profiles/nix.nix | 1 | ||||
| -rw-r--r-- | profiles/station/caldav.nix | 36 | ||||
| -rw-r--r-- | profiles/station/suckless.nix | 2 |
9 files changed, 41 insertions, 14 deletions
diff --git a/mut/bin/sb-clock b/mut/bin/sb-clock index 7649523..c079a58 100755 --- a/mut/bin/sb-clock +++ b/mut/bin/sb-clock @@ -19,8 +19,9 @@ case "$clock" in esac case $BLOCK_BUTTON in - 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"cyan\">/;s|..0m|</span></b>|")" && notify-send "Appointments" "$(calcurse -d3)" ;; - 2) setsid -f "$TERMINAL" -e calcurse ;; + 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"cyan\">/;s|..0m|</span></b>|")" && notify-send -t 100000 "$(khal list now 14d -f "{calendar-color} {start-time} {title} {status} {description} +" | sed "s/..7m/<b><span color=\"cyan\">/;s|..0m|</span></b>|")" ;; + 2) setsid -f "$TERMINAL" -e khal interactive ;; 3) notify-send "📅 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\` - Middle click opens calcurse if installed" ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; diff --git a/mut/neovim/init.lua b/mut/neovim/init.lua index aaa1260..bf643df 100644 --- a/mut/neovim/init.lua +++ b/mut/neovim/init.lua @@ -1 +1 @@ -return require("conf") +return require("conf")
\ No newline at end of file diff --git a/profiles/email/mailsync.nix b/profiles/email/mailsync.nix index 5e1037a..8e81c89 100644 --- a/profiles/email/mailsync.nix +++ b/profiles/email/mailsync.nix @@ -1,7 +1,5 @@ { - inputs, config, - pkgs, ... }: { hm = { diff --git a/profiles/email/neomutt.nix b/profiles/email/neomutt.nix index f69a5ee..0420a2e 100644 --- a/profiles/email/neomutt.nix +++ b/profiles/email/neomutt.nix @@ -1,7 +1,4 @@ { - inputs, - config, - pkgs, ... }: { hm = { diff --git a/profiles/email/notmuch.nix b/profiles/email/notmuch.nix index e317616..304e573 100644 --- a/profiles/email/notmuch.nix +++ b/profiles/email/notmuch.nix @@ -1,7 +1,5 @@ { - inputs, config, - pkgs, ... }: { hm = { diff --git a/profiles/email/server.nix b/profiles/email/server.nix index 9a5e16c..29996cd 100644 --- a/profiles/email/server.nix +++ b/profiles/email/server.nix @@ -1,6 +1,4 @@ { - inputs, - config, pkgs, lib, ... diff --git a/profiles/nix.nix b/profiles/nix.nix deleted file mode 100644 index 0967ef4..0000000 --- a/profiles/nix.nix +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/profiles/station/caldav.nix b/profiles/station/caldav.nix new file mode 100644 index 0000000..67a26d3 --- /dev/null +++ b/profiles/station/caldav.nix @@ -0,0 +1,36 @@ +{ lib, ... }: with lib; { + hm = { + accounts.calendar.basePath = "Cal"; + services.vdirsyncer.enable = true; + programs = { + vdirsyncer.enable = true; + khal.enable = true; + }; + accounts.calendar.accounts = { + mike = { + primary = true; + primaryCollection = "tasks"; + local = { + type = "filesystem"; + fileExt = ".ics"; + }; + remote = { + type = "caldav"; + url = "https://cal.${ivi.domain}"; + userName = "mike"; + passwordCommand = ["echo" "''"]; + }; + vdirsyncer = { + enable = true; + collections = ["tasks" "pomp"]; + conflictResolution = "remote wins"; + }; + khal = { + enable = true; + type = "discover"; + color = "light green"; + }; + }; + }; + }; +} diff --git a/profiles/station/suckless.nix b/profiles/station/suckless.nix index 5afd067..8986e6d 100644 --- a/profiles/station/suckless.nix +++ b/profiles/station/suckless.nix @@ -47,7 +47,7 @@ offset = "0x19"; padding = 2; horizontal_padding = 2; - transparency = 25; + transparency = 0; font = "Monospace 12"; format = "<b>%s</b>\\n%b"; }; |
