#!/usr/bin/env sh
case "$(hyprctl -j getoption general:layout | jq -r .str)" in
  dwindle)  hyprctl keyword general:layout master
            notify-send "Switched to MASTER layout"
            ;;
  master)   hyprctl keyword general:layout dwindle 
            notify-send "Switch to DWINDLE layout"
            ;;
esac
