diff options
-rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 15 | ||||
-rwxr-xr-x | overlays/worktime/worktime/__main__.py | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index caf66ab5..158ac4d6 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
@@ -836,6 +836,21 @@ in { | |||
836 | notify-send "$QALC_RES" | 836 | notify-send "$QALC_RES" |
837 | ''; | 837 | ''; |
838 | })); | 838 | })); |
839 | "Mod+Shift+U".action = | ||
840 | let | ||
841 | qalcKitty = pkgs.symlinkJoin { | ||
842 | name = "qalc-kitty"; | ||
843 | paths = [ config.programs.kitty.package ]; | ||
844 | buildInputs = [ pkgs.makeWrapper ]; | ||
845 | postBuild = '' | ||
846 | wrapProgram $out/bin/kitty \ | ||
847 | --add-flags "--config ${pkgs.writeText "kitty.conf" '' | ||
848 | include $HOME/${config.xdg.configFile."kitty/kitty.conf".target} | ||
849 | shell ${lib.getExe pkgs.libqalculate} | ||
850 | ''}" | ||
851 | ''; | ||
852 | }; | ||
853 | in spawn (lib.getExe' qalcKitty "kitty"); | ||
839 | "Mod+E".action = spawn (lib.getExe (pkgs.writeShellApplication { | 854 | "Mod+E".action = spawn (lib.getExe (pkgs.writeShellApplication { |
840 | name = "emoji-fuzzel"; | 855 | name = "emoji-fuzzel"; |
841 | runtimeInputs = with pkgs; [ config.programs.fuzzel.package wtype wl-clipboard-rs ]; | 856 | runtimeInputs = with pkgs; [ config.programs.fuzzel.package wtype wl-clipboard-rs ]; |
diff --git a/overlays/worktime/worktime/__main__.py b/overlays/worktime/worktime/__main__.py index fbd8fb0a..bf24bbec 100755 --- a/overlays/worktime/worktime/__main__.py +++ b/overlays/worktime/worktime/__main__.py | |||
@@ -174,7 +174,7 @@ class KimaiAPI(object): | |||
174 | if not entry: | 174 | if not entry: |
175 | return None | 175 | return None |
176 | start = isoparse(entry['begin']) | 176 | start = isoparse(entry['begin']) |
177 | return now - start if start <= now else None, entry | 177 | return now - start if start <= now else None |
178 | 178 | ||
179 | def get_recent_entries(self) -> Generator[Any]: | 179 | def get_recent_entries(self) -> Generator[Any]: |
180 | step = timedelta(days = 7) | 180 | step = timedelta(days = 7) |