From 666a75f84485644c9a1593e1ceb3cba214a5c782 Mon Sep 17 00:00:00 2001 From: Riley Apeldoorn Date: Wed, 28 Jun 2023 13:29:23 +0200 Subject: [PATCH] Add keybinds for volume and fix eval on dev-lt-63 --- flake.nix | 3 ++- shared/home/gui/sway.nix | 5 ++++- system/dev-lt-63/home.nix | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 5322dc3..f63d6b8 100644 --- a/flake.nix +++ b/flake.nix @@ -65,7 +65,8 @@ # Configurations for non-NixOS machines. homeConfigurations = with home-manager.lib; { "dev-lt-63" = homeManagerConfiguration { - pkgs = nixpkgs.legacyPackages."x86_64-linux"; + extraSpecialArgs = args; + pkgs = import nixpkgs { system = "x86_64-linux"; }; modules = [ ./system/dev-lt-63/home.nix ./shared/home diff --git a/shared/home/gui/sway.nix b/shared/home/gui/sway.nix index d57a2cb..1348f5c 100644 --- a/shared/home/gui/sway.nix +++ b/shared/home/gui/sway.nix @@ -61,7 +61,7 @@ in with lib; { config = rec { output."*".bg = "${../../data/wallpaper.jpg} fill"; - input."type:keyboard".xkb_options = "caps:escape"; + input."type:keyboard".xkb_options = "caps:super"; terminal = "kitty --single-instance"; bars = []; @@ -127,6 +127,9 @@ in with lib; { "XF86AudioMute" = "exec ${vol} toggle"; "XF86AudioPlay" = "exec ${mpc} toggle"; + "${mod}+z" = "exec ${vol} lower"; + "${mod}+x" = "exec ${vol} raise"; + "${mod}+comma" = "exec ${mpc} prev"; "${mod}+period" = "exec ${mpc} next"; "${mod}+slash" = "exec ${mpc} toggle"; diff --git a/system/dev-lt-63/home.nix b/system/dev-lt-63/home.nix index f32e3c2..318dfee 100644 --- a/system/dev-lt-63/home.nix +++ b/system/dev-lt-63/home.nix @@ -5,6 +5,7 @@ username = "riley"; homeDirectory = "/home/riley"; stateVersion = "22.05"; + packages = [ pkgs.tty-share ]; }; programs = {