diff options
-rw-r--r-- | accounts/gkleen@sif/default.nix | 19 | ||||
-rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 5 | ||||
-rwxr-xr-x | overlays/worktime/worktime/__main__.py | 2 |
3 files changed, 25 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 6671e5c7..706eb241 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix | |||
@@ -723,6 +723,25 @@ in { | |||
723 | }; | 723 | }; |
724 | settings = { | 724 | settings = { |
725 | StartupWMClass = "Kimai"; | 725 | StartupWMClass = "Kimai"; |
726 | StartupNotify = "true"; | ||
727 | }; | ||
728 | }; | ||
729 | audiobookshelf = { | ||
730 | name = "Audiobookshelf"; | ||
731 | exec = toString (pkgs.writeShellScript "audiobookshelf" '' | ||
732 | exec -- \ | ||
733 | ${lib.getExe' pkgs.google-chrome "google-chrome-stable"} \ | ||
734 | --class=Audiobookshelf \ | ||
735 | --app="https://audiobookshelf.yggdrasil.li" \ | ||
736 | --user-data-dir=''${HOME}/.config/google-chrome-audiobookshelf | ||
737 | ''); | ||
738 | icon = pkgs.fetchurl { | ||
739 | url = "https://www.audiobookshelf.org/Logo.png"; | ||
740 | hash = "sha256-JGPk+WNT1C4DC4lSMb0K0YmAMT5LvmSOeO0QRzkc7Lk="; | ||
741 | }; | ||
742 | settings = { | ||
743 | StartupWMClass = "Audiobookshelf"; | ||
744 | StartupNotify = "true"; | ||
726 | }; | 745 | }; |
727 | }; | 746 | }; |
728 | thunderbird-lmu = { | 747 | thunderbird-lmu = { |
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 158ac4d6..b2b2918e 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
@@ -712,6 +712,11 @@ in { | |||
712 | (leaf "open-focused" false) | 712 | (leaf "open-focused" false) |
713 | ]) | 713 | ]) |
714 | (plain "window-rule" [ | 714 | (plain "window-rule" [ |
715 | (leaf "match" { app-id = "^chrome-audiobookshelf\.yggdrasil\.li__-Default$"; }) | ||
716 | (leaf "match" { app-id = "^YouTube Music Desktop App$"; }) | ||
717 | (leaf "open-on-workspace" "vid") | ||
718 | ]) | ||
719 | (plain "window-rule" [ | ||
715 | (leaf "match" { app-id = "^pdfpc$"; }) | 720 | (leaf "match" { app-id = "^pdfpc$"; }) |
716 | (plain "default-column-width" [(leaf "proportion" 1.)]) | 721 | (plain "default-column-width" [(leaf "proportion" 1.)]) |
717 | ]) | 722 | ]) |
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) |