@property
    def keyboard(self):
        """Return the currently used keyboard layout as a string

        Examples: "us", "us dvorak".  In case of error returns "unknown".
        """
        try:
            command = 'setxkbmap -verbose 10'
            setxkbmap_output = self.call_process(command.split(' '))
            keyboard = self.get_keyboard_layout(setxkbmap_output)
            return str(keyboard)
        except CalledProcessError as e:
            logger.error('Can not get the keyboard layout: {0}'.format(e))
        except __HOLE__ as e:
            logger.error('Please, check that xset is available: {0}'.format(e))
        return "unknown"
dataset/ETHPy150Open qtile/qtile/libqtile/widget/keyboardlayout.py/KeyboardLayout.keyboard