#!/bin/bash layout=$(hyprctl devices | grep "active keymap" | awk '{print($3, $4)}' | sort | uniq | tail -n 1) echo "$layout"