diff --git a/home/xin/calcite.nix b/home/xin/calcite.nix index c834d39..ff95985 100644 --- a/home/xin/calcite.nix +++ b/home/xin/calcite.nix @@ -5,6 +5,7 @@ in { imports = [ ./common + ./common/gui/foot.nix ]; programs.nix-index-database.comma.enable = true; @@ -58,12 +59,6 @@ in xdg.enable = true; custom-hm = { - alacritty = { - enable = true; - }; - cosmic-term = { - enable = true; - }; direnv = { enable = true; }; diff --git a/home/xin/common/gui/foot.nix b/home/xin/common/gui/foot.nix new file mode 100644 index 0000000..0ec411a --- /dev/null +++ b/home/xin/common/gui/foot.nix @@ -0,0 +1,15 @@ +{ pkgs, lib, ... }: +{ + programs.foot = { + enable = true; + settings = { + main = { + font = "monospace:size=14"; + }; + desktop-notifications = { + command = "${lib.getExe pkgs.libnotify} --wait --app-name \${app-id} --icon \${app-id} --category \${category} --urgency \${urgency} --expire-time \${expire-time} --hint STRING:image-path:\${icon} --hint BOOLEAN:suppress-sound:\${muted} --hint STRING:sound-name:\${sound-name} --replace-id \${replace-id} \${action-argument} --print-id -- \${title} \${body}"; + inhibit-when-focused = "yes"; + }; + }; + }; +} diff --git a/machines/calcite/configuration.nix b/machines/calcite/configuration.nix index 9a70f52..c3d0655 100644 --- a/machines/calcite/configuration.nix +++ b/machines/calcite/configuration.nix @@ -164,6 +164,7 @@ in ids = [ "0b05:1866" ]; settings = { main = { + capslock = "overload(control, esc)"; leftcontrol = "capslock"; }; };