Make keystroke combinations be read including Super, Alt, Esc type keys

Viewed 40

I am still learning and aiming to improve Bash knowledge. I am trying to make a script where I type combinations of keys as Super, Esc, Alt with another one being alphabetic or a numbered one, something like:

#!/bin/bash

read -r <Super>+<D> key #Any shortcut
if [ $key = <Super>+<D> ];
then
   echo "Done"
fi #Anyway nothing is displayed

Any tips for solve it? I have searched in whole net any way for it but I didn't find, and when I went to xev but the Super key looks like unidentifiable and at xdotool is only possible to access virtual keyboard.

0 Answers
Related