def set_x(layout):
 cmd = 'setxkbmap {0}'.format(layout)
 __salt__['cmd.run'](cmd)
 return layout

def set_x ( layout ) : cmd = 'setxkbmap {0}' . format ( layout ) __salt__ [ 'cmd.run' ] ( cmd ) return layout
set current x keyboard setting cli example: .