Files
shed/modules/home/scripts/wm-controls/switchmon.nix

9 lines
189 B
Nix

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