GNOME implementations
salt.modules.gnomedesktop.
get
(schema=None, key=None, user=None, **kwargs)¶Get key in a particular GNOME schema
CLI 范例:
salt '*' gnome.get user=<username> schema=org.gnome.desktop.screensaver key=idle-activation-enabled
salt.modules.gnomedesktop.
getClockFormat
(**kwargs)¶Return the current clock format, either 12h or 24h format.
CLI 范例:
salt '*' gnome.getClockFormat user=<username>
salt.modules.gnomedesktop.
getClockShowDate
(**kwargs)¶Return the current setting, if the date is shown in the clock
CLI 范例:
salt '*' gnome.getClockShowDate user=<username>
salt.modules.gnomedesktop.
getIdleActivation
(**kwargs)¶Get whether the idle activation is enabled
CLI 范例:
salt '*' gnome.getIdleActivation user=<username>
salt.modules.gnomedesktop.
getIdleDelay
(**kwargs)¶Return the current idle delay setting in seconds
CLI 范例:
salt '*' gnome.getIdleDelay user=<username>
salt.modules.gnomedesktop.
ping
(**kwargs)¶A test to ensure the GNOME module is loaded
CLI 范例:
salt '*' gnome.ping user=<username>
salt.modules.gnomedesktop.
setClockFormat
(clockFormat, **kwargs)¶Set the clock format, either 12h or 24h format.
CLI 范例:
salt '*' gnome.setClockFormat <12h|24h> user=<username>
salt.modules.gnomedesktop.
setClockShowDate
(kvalue, **kwargs)¶Set whether the date is visible in the clock
CLI 范例:
salt '*' gnome.setClockShowDate <True|False> user=<username>
salt.modules.gnomedesktop.
setIdleActivation
(kvalue, **kwargs)¶Set whether the idle activation is enabled
CLI 范例:
salt '*' gnome.setIdleActivation <True|False> user=<username>
salt.modules.gnomedesktop.
setIdleDelay
(delaySeconds, **kwargs)¶Set the current idle delay setting in seconds
CLI 范例:
salt '*' gnome.setIdleDelay <seconds> user=<username>
salt.modules.gnomedesktop.
set
(schema=None, key=None, user=None, value=None, **kwargs)¶Set key in a particular GNOME schema
CLI 范例:
salt '*' gnome.set user=<username> schema=org.gnome.desktop.screensaver key=idle-activation-enabled value=False