swayfx/sway/commands
Brian Ashworth d9de5b8758 Implement inhibit_idle command
This implements the following command to set/unset a user idle
inhibitor for a view:
`inhibit_idle focus|fullscreen|open|none|visible`

The modes are as follows:
- focus: inhibited when the view is focused by any seat
- fullscreen: inhibited when the view is fullscreen (or a descendant of
  a fullscreen container) and is visible on any output
- open: inhibited until the view is closed or the inhibitor is unset or
  changed
- none: unsets any user set idle inhibitors for the view
- visible: inhibited when the view is visible on any output

This should have no effect on idle inhibitors set by the applications
themselves and those should still work as intended.

Since this operates on the view in the handler context, it is possible
to set it on the currently focused view, on any existing view with
criteria, or for any future view with for_window.
2019-03-24 19:26:12 -06:00
..
bar swaybar: add overlay mode (fix #1620) 2019-02-24 20:05:47 -05:00
input Merge pull request #3480 from RedSoxFan/input-modes-improved-toggle 2019-01-21 09:28:47 -05:00
output Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
seat seat_cmd_cursor: fix typo in expected syntax 2019-02-17 20:16:23 -05:00
assign.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
bar.c util.c: remove numlen function 2019-01-22 13:10:25 +01:00
bind.c Support WLR_INPUT_DEVICE_SWITCH in sway 2019-03-19 23:58:47 -04:00
border.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
client.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
create_output.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
default_border.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
default_floating_border.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
default_orientation.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
exec.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
exec_always.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
exit.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
floating.c commands: allow setting floating on scratchpad containers 2019-01-22 11:47:48 +00:00
floating_minmax_size.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
floating_modifier.c Move sway-specific functions in common/util.c into sway/ 2019-01-21 12:39:16 -05:00
focus.c Support focus <direction> for floating containers 2019-03-20 08:55:28 -06:00
focus_follows_mouse.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
focus_on_window_activation.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
focus_wrapping.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
font.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
for_window.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
force_display_urgency_hint.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
force_focus_wrapping.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
fullscreen.c Implement fullscreen global 2019-01-25 08:29:21 +10:00
gaps.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
hide_edge_borders.c add --i3 flag to hide_edge_borders 2019-02-24 15:26:37 -05:00
include.c Make load_include_configs void. Fix some cases where WD would not be restored. 2019-02-24 00:01:35 -05:00
inhibit_idle.c Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
input.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
kill.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
layout.c layout cmd: always operate on parent container, like i3Fixes #3724 2019-02-19 10:50:49 -05:00
mark.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
mode.c cmd_mode: allow cmd_set to be a subcommand 2019-03-23 08:07:25 +02:00
mouse_warping.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
move.c commands: allow tiled sticky containers to be moved 2019-03-11 21:49:37 -04:00
no_focus.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
nop.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
opacity.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
output.c Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
popup_during_fullscreen.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
reload.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
rename.c Allow for workspace renaming during exec handling 2019-03-23 17:49:27 -04:00
resize.c floating_maximum_size: change default behavior 2019-03-02 09:10:26 +01:00
scratchpad.c Handle seat_get_focused_workspace returning NULL 2019-03-12 19:14:04 +01:00
seat.c fix misc memory leaks 2019-02-11 10:10:48 +01:00
set.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
show_marks.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
smart_borders.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
smart_gaps.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
split.c Introduce container_is_scratchpad_hidden 2019-01-28 10:35:40 +01:00
sticky.c Handle NULL from output_get_active_workspace 2019-02-21 21:18:03 +01:00
swap.c Handle NULL from output_get_active_workspace 2019-02-21 21:18:03 +01:00
swaybg_command.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
swaynag_command.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
tiling_drag.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
tiling_drag_threshold.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
title_align.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
title_format.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
titlebar_border_thickness.c Handle NULL from output_get_active_workspace 2019-02-21 21:18:03 +01:00
titlebar_padding.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
unmark.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
urgent.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
workspace.c Handle seat_get_focused_workspace returning NULL 2019-03-12 19:14:04 +01:00
workspace_layout.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
ws_auto_back_and_forth.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
xwayland.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00