From 2ebf144336e1fad165fc132099d046dbdbcdf576 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 7 Apr 2023 21:10:13 +0530 Subject: [PATCH] use same kitty everywhere --- home/wm/hyprland/default.nix | 2 +- home/wm/sway/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index bfe5e36..6d0200c 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -3,7 +3,7 @@ let brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl"; grim = "${pkgs.grim}/bin/grim"; hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl"; - kitty = "${pkgs.kitty}/bin/kitty"; + kitty = "${config.programs.kitty.package}/bin/kitty"; playerctl = "${pkgs.playerctl}/bin/playerctl"; rofi = "${config.programs.rofi.package}/bin/rofi"; slurp = "${pkgs.slurp}/bin/slurp"; diff --git a/home/wm/sway/default.nix b/home/wm/sway/default.nix index d510f8e..ef5cba0 100644 --- a/home/wm/sway/default.nix +++ b/home/wm/sway/default.nix @@ -75,8 +75,8 @@ modifier = config.wayland.windowManager.sway.config.modifier; in lib.mkOptionDefault { - "${modifier}+Return" = "exec ${pkgs.kitty}/bin/kitty ${pkgs.tmux}/bin/tmux new"; - "${modifier}+Shift+Return" = "exec ${pkgs.kitty}/bin/kitty"; + "${modifier}+Return" = "exec $config.programs.kitty.package}/bin/kitty ${pkgs.tmux}/bin/tmux new"; + "${modifier}+Shift+Return" = "exec ${config.programs.kitty.package}/bin/kitty"; "${modifier}+d" = "exec ${config.programs.rofi.package}/bin/rofi -show drun"; "${modifier}+Shift+c" = "reload"; "${modifier}+l" = "exec ${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg";