aboutsummaryrefslogtreecommitdiff
path: root/share/cfg/foot.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/cfg/foot.nix')
-rw-r--r--share/cfg/foot.nix49
1 files changed, 0 insertions, 49 deletions
diff --git a/share/cfg/foot.nix b/share/cfg/foot.nix
deleted file mode 100644
index 4ef5579..0000000
--- a/share/cfg/foot.nix
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.programs.foot;
- foot-pkg = pkgs.symlinkJoin {
- name = "foot-wrapped";
- paths = [
- pkgs.foot
- pkgs.nerd-fonts.caskaydia-cove
- ];
- };
-in
-{
- programs.foot = {
- server.enable = cfg.enable;
- package = foot-pkg;
- settings = {
- main = {
- term = "xterm-256color";
- dpi-aware = "yes";
- font = "CaskaydiaCove Nerd Font:14";
- };
-
- mouse = {
- hide-when-typing = "yes";
- };
- };
- };
-
- programs.fish.functions.icat =
- # TODO: find window manager agnostic way to get current window size
- lib.mkIf (cfg.enable && config.wayland.windowManager.hyprland.enable) {
- body = ''
- set --local width $(hyprctl -j activewindow | jaq '.size[0]')
- set --local maximgwidth $(math "ceil($width * 0.7)")
- img2sixel --width $maximgwidth $argv
- '';
- };
-
- home.packages = lib.mkIf cfg.enable (
- builtins.attrValues {
- inherit (pkgs) libsixel jaq hyprland;
- }
- );
-}