diff --git a/configuration.nix b/configuration.nix index 0eda2a5..ae1cd48 100644 --- a/configuration.nix +++ b/configuration.nix @@ -59,6 +59,7 @@ brightnessctl xorg.xev dunst + python311 i3status-rust ]; }; diff --git a/i3/config.nix b/i3/config.nix index 6e6004e..2b589ea 100644 --- a/i3/config.nix +++ b/i3/config.nix @@ -60,6 +60,7 @@ in # windows ## switch to resize mode "${mod}+r" = "mode resize"; + "${mod}+m" = "mode media"; ## focus "${mod}+h" = "focus left"; "${mod}+j" = "focus down"; @@ -88,6 +89,12 @@ in h = "resize grow width 10 px or 10 ppt"; k = "resize shrink height 10 px or 10 ppt"; }; + media = { + Return = "mode default"; + Escape = "mode default"; + j = "exec python3 /etc/nixos/i3/audio.py 5%-"; + k = "exec python3 /etc/nixos/i3/audio.py 5%+"; + }; }; window = {