Merge a5a7185065
into 00c33908a3
This commit is contained in:
commit
164c6cd23e
|
@ -23,7 +23,7 @@ def validate(plugin_config, plugin_settings):
|
||||||
command = None
|
command = None
|
||||||
if utility.DESKTOP_ENVIRONMENT == "gnome" and utility.IS_WAYLAND:
|
if utility.DESKTOP_ENVIRONMENT == "gnome" and utility.IS_WAYLAND:
|
||||||
command = "dbus-send"
|
command = "dbus-send"
|
||||||
elif utility.DESKTOP_ENVIRONMENT == "sway":
|
elif utility.IS_WAYLAND:
|
||||||
command = "swayidle"
|
command = "swayidle"
|
||||||
else:
|
else:
|
||||||
command = "xprintidle"
|
command = "xprintidle"
|
||||||
|
|
|
@ -171,7 +171,7 @@ def init(ctx, safeeyes_config, plugin_config):
|
||||||
long_break_duration = safeeyes_config.get('long_break_duration')
|
long_break_duration = safeeyes_config.get('long_break_duration')
|
||||||
waiting_time = min(2, idle_time) # If idle time is 1 sec, wait only 1 sec
|
waiting_time = min(2, idle_time) # If idle time is 1 sec, wait only 1 sec
|
||||||
is_wayland_and_gnome = context['desktop'] == 'gnome' and context['is_wayland']
|
is_wayland_and_gnome = context['desktop'] == 'gnome' and context['is_wayland']
|
||||||
use_swayidle = context['desktop'] == 'sway'
|
use_swayidle = context['desktop'] != 'gnome' and context['is_wayland']
|
||||||
|
|
||||||
|
|
||||||
def __start_idle_monitor():
|
def __start_idle_monitor():
|
||||||
|
|
Loading…
Reference in New Issue