#!/bin/bash
if systemctl is-active --quiet rgds-pad2key; then
	systemctl stop rgds-pad2key && m="Pad-as-keyboard OFF — raw gamepad (for games)"
else
	systemctl start rgds-pad2key && m="Pad-as-keyboard ON — D-pad = keyboard"
fi
command -v notify-send >/dev/null 2>&1 && notify-send -t 1500 -i input-gaming "RG DS" "$m"
