Gen 423: Converted shell scripts into nix files
This commit is contained in:
9
glasshouse-laptop/home/scripts/switchmon.nix
Normal file
9
glasshouse-laptop/home/scripts/switchmon.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ pkgs }:
|
||||
|
||||
{
|
||||
switchmon = pkgs.writeShellScriptBin "switchmon" (''
|
||||
#!/bin/zsh
|
||||
|
||||
hyprctl dispatch focusmonitor $(echo "$(hyprctl -j monitors)" | jq -r '.[] | select(.focused == false) | .name')
|
||||
'');
|
||||
}
|
||||
Reference in New Issue
Block a user