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

10 lines
193 B
Nix

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