wm/contrib/fish_completion

15 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-06-15 16:00:16 +00:00
function __fish_tspc_needs_command
2022-12-26 02:27:23 +00:00
set cmd (commandline -opc)
2023-06-15 16:00:16 +00:00
[ (count $cmd) -eq 1 -a $cmd[1] = 'tspc' ]; and return 0
2022-12-26 02:27:23 +00:00
return 1
end
2023-06-15 16:00:16 +00:00
function __fish_tspc_using_command
2022-12-26 02:27:23 +00:00
set cmd (commandline -opc)
[ (count $cmd) -gt 1 ]; and [ $argv[1] = $cmd[2] ]; and return 0
return 1
end
2023-06-15 16:00:16 +00:00
complete -f -c tspc -n '__fish_tspc_needs_command' -a 'node desktop monitor query rule wm subscribe config quit'
complete -f -c tspc -n '__fish_tspc_using_command config' -a 'external_rules_command status_prefix normal_border_color active_border_color focused_border_color presel_feedback_color border_width window_gap top_padding right_padding bottom_padding left_padding top_monocle_padding right_monocle_padding bottom_monocle_padding left_monocle_padding split_ratio automatic_scheme removal_adjustment initial_polarity directional_focus_tightness presel_feedback borderless_monocle gapless_monocle single_monocle borderless_singleton pointer_motion_interval pointer_modifier pointer_action1 pointer_action2 pointer_action3 click_to_focus swallow_first_click focus_follows_pointer pointer_follows_focus pointer_follows_monitor mapping_events_count ignore_ewmh_focus ignore_ewmh_fullscreen ignore_ewmh_struts center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors'