Files
nixos-config/modules/home/scripts/wm-controls/switchmon.nix

12 lines
209 B
Nix
Executable File

{
pkgs,
}:
pkgs.writeShellApplication {
name = "switchmon";
text = ''
#!/bin/zsh
hyprctl dispatch focusmonitor "$(hyprctl -j monitors | jq -r '.[] | select(.focused == false) | .name')"
'';
}