diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/default.nix | 9 | ||||
-rw-r--r-- | gui/tasker.nix | 38 |
2 files changed, 7 insertions, 40 deletions
diff --git a/gui/default.nix b/gui/default.nix index 6948139..93cf8c3 100644 --- a/gui/default.nix +++ b/gui/default.nix @@ -9,14 +9,13 @@ in { ./kitty.nix ./vim.nix ./zathura.nix - # desktop shortcuts for project specific tasks - ./tasker.nix # applications grouped by purpose ./apps/file.nix ./apps/web.nix ./apps/dev.nix ]; +# hidpi specific xorg flags xresources.extraConfig = pkgs.lib.mkIf hidpi '' Xft.dpi: 160 Xft.autohint: 0 @@ -26,4 +25,10 @@ in { Xft.antialias: 1 Xft.rgba: rgb ''; + +# desktop shortcuts for project specific tasks + home.packages = pkgs.callPackage ./pkgs/tasker.nix { + inherit pkgs; + tasks = config.custom.tasks; + }; } diff --git a/gui/tasker.nix b/gui/tasker.nix deleted file mode 100644 index e7092ba..0000000 --- a/gui/tasker.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ pkgs, ... }: - -let - tasks = { - "bsc_edit" = { - description = "Grid refinement BSc thesis editor"; - directory = "~/university/documents/bachelor/arbeit"; - terminal = false; - command = "nix-shell --run 'nvim-qt --no-ext-tabline'"; - }; - "bsc_shell" = { - description = "Grid refinement BSc thesis shell"; - directory = "~/university/documents/bachelor/arbeit"; - terminal = true; - command = "nix-shell --command fish"; - }; - "bsc_view" = { - description = "Grid refinement BSc thesis PDF"; - directory = "~/university/documents/bachelor/arbeit"; - terminal = false; - command = "evince build/main.pdf"; - }; - "olb_edit" = { - description = "OpenLB editor"; - directory = "~/projects/contrib/openlb"; - terminal = false; - command = "nix-shell --run 'nvim-qt --no-ext-tabline'"; - }; - "olb_shell" = { - description = "OpenLB shell"; - directory = "~/projects/contrib/openlb"; - terminal = true; - command = "nix-shell --command fish"; - }; - }; -in { - home.packages = pkgs.callPackage ./pkgs/tasker.nix { inherit pkgs; inherit tasks; }; -} |