aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/office/calcurse/conf4
-rw-r--r--modules/office/calcurse/default.nix9
-rw-r--r--users/arpit/default.nix1
3 files changed, 9 insertions, 5 deletions
diff --git a/modules/office/calcurse/conf b/modules/office/calcurse/conf
index 393fab6..1868cc6 100644
--- a/modules/office/calcurse/conf
+++ b/modules/office/calcurse/conf
@@ -15,7 +15,7 @@ appearance.todoview=show-completed
appearance.headingpos=right-justified
# Daemon
-daemon.enable=no
+daemon.enable=yes
daemon.log=no
# Format
@@ -38,5 +38,5 @@ general.systemevents=yes
# Notification
notification.warning=300
-notification.command=printf '\a'
+notification.command=notify-send -a calcurse -i "@@CALCURSE_ICON@@" -u critical "Calcurse" "$(calcurse -n | tail -1 | cut -d ' ' -f5-)"
notification.notifyall=flagged-only
diff --git a/modules/office/calcurse/default.nix b/modules/office/calcurse/default.nix
index 90e4699..6e3e855 100644
--- a/modules/office/calcurse/default.nix
+++ b/modules/office/calcurse/default.nix
@@ -8,11 +8,12 @@
let
calcurseSync = pkgs.writeShellScriptBin "calcurse-sync" (builtins.readFile ./calcurse-sync.sh);
- calcursePackage = pkgs.symlinkJoin {
+ calcurse = pkgs.symlinkJoin {
name = "calcurse-wrapped";
paths = [
config.terminal.bash.package
pkgs.calcurse
+ pkgs.libnotify
]
++ lib.optionals config.development.nixvim.enable [ config.development.nixvim.package ]
++ lib.optionals config.office.calcurse.sync.enable [ calcurseSync ];
@@ -48,7 +49,7 @@ in
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
- default = calcursePackage;
+ default = calcurse;
description = "The calcurse package to use.";
};
sync = {
@@ -81,7 +82,9 @@ in
home.packages = [ config.office.calcurse.package ];
xdg.configFile."calcurse/conf" = {
- source = ./conf;
+ text =
+ builtins.replaceStrings [ "@@CALCURSE_ICON@@" ] [ "${../../../assets/icons/apps/calcurse.svg}" ]
+ (builtins.readFile ./conf);
force = true;
};
xdg.configFile."calcurse/keys" = {
diff --git a/users/arpit/default.nix b/users/arpit/default.nix
index 1baef7c..c2dec0e 100644
--- a/users/arpit/default.nix
+++ b/users/arpit/default.nix
@@ -21,6 +21,7 @@
amd.enable = true;
};
desktop.mako.enable = true;
+ desktop.swayidle.enable = true;
# Gaming
gaming.heroic.enable = true;