mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-24 03:25:59 +01:00
Regenerate completions, update man pages.
This commit is contained in:
parent
cba1ade848
commit
2b034792e9
4 changed files with 271 additions and 259 deletions
|
@ -68,6 +68,10 @@ INFO COMMANDS
|
||||||
|
|
||||||
Lists all workspaces with their properties.
|
Lists all workspaces with their properties.
|
||||||
|
|
||||||
|
**workspacerules**
|
||||||
|
|
||||||
|
Lists all workspace rules.
|
||||||
|
|
||||||
**clients**
|
**clients**
|
||||||
|
|
||||||
Lists all windows with their properties.
|
Lists all windows with their properties.
|
||||||
|
@ -104,6 +108,10 @@ OPTIONS
|
||||||
|
|
||||||
Outputs information in JSON.
|
Outputs information in JSON.
|
||||||
|
|
||||||
|
**-i, --instance**
|
||||||
|
|
||||||
|
Select instances (id or index in hyprctl instances).
|
||||||
|
|
||||||
BUGS
|
BUGS
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|
|
@ -2,16 +2,16 @@ _hyprctl_cmd_2 () {
|
||||||
hyprctl monitors | grep Monitor | awk '{ print $2 }'
|
hyprctl monitors | grep Monitor | awk '{ print $2 }'
|
||||||
}
|
}
|
||||||
|
|
||||||
_hyprctl_cmd_1 () {
|
_hyprctl_cmd_0 () {
|
||||||
hyprpm list | grep "Plugin" | awk '{print $4}'
|
hyprpm list | grep "Plugin" | awk '{print $4}'
|
||||||
}
|
}
|
||||||
|
|
||||||
_hyprctl_cmd_0 () {
|
_hyprctl_cmd_1 () {
|
||||||
hyprctl clients | grep class | awk '{print $2}'
|
hyprctl devices | sed -n '/Keyboard at/{n; s/^\s\+//; p}'
|
||||||
}
|
}
|
||||||
|
|
||||||
_hyprctl_cmd_3 () {
|
_hyprctl_cmd_3 () {
|
||||||
hyprctl devices | sed -n '/Keyboard at/{n; s/^\s\+//; p}'
|
hyprctl clients | grep class | awk '{print $2}'
|
||||||
}
|
}
|
||||||
|
|
||||||
_hyprctl () {
|
_hyprctl () {
|
||||||
|
@ -23,25 +23,25 @@ _hyprctl () {
|
||||||
local words cword
|
local words cword
|
||||||
_get_comp_words_by_ref -n "$COMP_WORDBREAKS" words cword
|
_get_comp_words_by_ref -n "$COMP_WORDBREAKS" words cword
|
||||||
|
|
||||||
local -a literals=("cyclenext" "globalshortcuts" "cursorpos" "bordersize" "renameworkspace" "animationstyle" "focuswindow" "0" "auto" "swapnext" "forceallowsinput" "moveactive" "activebordercolor" "alphafullscreen" "wayland" "layers" "minsize" "monitors" "1" "kill" "settiled" "3" "focusmonitor" "swapwindow" "moveoutofgroup" "notify" "movecursor" "setcursor" "seterror" "movecurrentworkspacetomonitor" "4" "nomaxsize" "forcenoanims" "setprop" "-i" "togglefloating" "workspacerules" "movetoworkspace" "disable" "setignoregrouplock" "workspaces" "movegroupwindow" "closewindow" "0" "--instance" "binds" "movewindow" "splitratio" "alpha" "denywindowfromgroup" "workspace" "configerrors" "togglegroup" "getoption" "forceopaque" "keepaspectratio" "killactive" "pass" "decorations" "devices" "focuscurrentorlast" "submap" "global" "alphafullscreenoverride" "forcerendererreload" "movewindowpixel" "headless" "version" "dpms" "resizeactive" "moveintogroup" "5" "alphaoverride" "setfloating" "rollinglog" "::=" "rounding" "layouts" "moveworkspacetomonitor" "exec" "alphainactiveoverride" "alterzorder" "fakefullscreen" "nofocus" "keyword" "forcenoborder" "forcenodim" "pin" "output" "forcenoblur" "togglespecialworkspace" "fullscreen" "toggleopaque" "focusworkspaceoncurrentmonitor" "next" "changegroupactive" "-j" "instances" "execr" "exit" "clients" "all" "--batch" "dismissnotify" "inactivebordercolor" "switchxkblayout" "movetoworkspacesilent" "movewindoworgroup" "-r" "movefocus" "focusurgentorlast" "remove" "activeworkspace" "dispatch" "create" "centerwindow" "2" "hyprpaper" "-1" "reload" "alphainactive" "systeminfo" "plugin" "dimaround" "activewindow" "swapactiveworkspaces" "splash" "maxsize" "lockactivegroup" "windowdancecompat" "forceopaqueoverriden" "lockgroups" "movecursortocorner" "x11" "prev" "1" "resizewindowpixel" "forcenoshadow")
|
local -a literals=("resizeactive" "changegroupactive" "-r" "moveintogroup" "forceallowsinput" "4" "::=" "systeminfo" "all" "layouts" "animationstyle" "setprop" "switchxkblayout" "create" "denywindowfromgroup" "headless" "activebordercolor" "exec" "setcursor" "wayland" "focusurgentorlast" "workspacerules" "movecurrentworkspacetomonitor" "movetoworkspacesilent" "hyprpaper" "alpha" "inactivebordercolor" "movegroupwindow" "movecursortocorner" "movewindowpixel" "prev" "movewindow" "clients" "dimaround" "setignoregrouplock" "splash" "execr" "monitors" "0" "forcenoborder" "1" "nomaxsize" "splitratio" "moveactive" "pass" "swapnext" "devices" "layers" "rounding" "lockactivegroup" "5" "moveworkspacetomonitor" "-i" "forcenodim" "pin" "0" "1" "forceopaque" "forcenoshadow" "setfloating" "minsize" "alphaoverride" "workspaces" "cyclenext" "alterzorder" "togglegroup" "lockgroups" "bordersize" "dpms" "focuscurrentorlast" "-1" "--batch" "notify" "remove" "instances" "moveoutofgroup" "killactive" "2" "movetoworkspace" "movecursor" "configerrors" "closewindow" "swapwindow" "auto" "forcerendererreload" "centerwindow" "focuswindow" "seterror" "nofocus" "alphafullscreen" "binds" "version" "togglespecialworkspace" "fullscreen" "windowdancecompat" "globalshortcuts" "keyword" "toggleopaque" "3" "--instance" "togglefloating" "renameworkspace" "alphafullscreenoverride" "activeworkspace" "x11" "kill" "forceopaqueoverriden" "output" "global" "dispatch" "reload" "forcenoblur" "-j" "disable" "activewindow" "keepaspectratio" "dismissnotify" "focusmonitor" "movefocus" "plugin" "exit" "workspace" "getoption" "alphainactiveoverride" "alphainactive" "decorations" "settiled" "resizewindowpixel" "fakefullscreen" "rollinglog" "swapactiveworkspaces" "submap" "next" "movewindoworgroup" "cursorpos" "forcenoanims" "focusworkspaceoncurrentmonitor" "maxsize")
|
||||||
|
|
||||||
declare -A literal_transitions
|
declare -A literal_transitions
|
||||||
literal_transitions[0]="([103]=1 [74]=2 [33]=3 [1]=2 [2]=2 [77]=2 [105]=4 [36]=2 [108]=5 [40]=2 [45]=2 [112]=2 [84]=6 [113]=8 [51]=2 [53]=2 [88]=9 [117]=2 [119]=2 [121]=2 [15]=2 [58]=10 [59]=2 [17]=11 [122]=12 [19]=2 [124]=2 [126]=2 [25]=13 [67]=2 [96]=5 [97]=2 [27]=2 [28]=14 [100]=2 [102]=5)"
|
literal_transitions[0]="([74]=2 [2]=17 [47]=2 [46]=2 [114]=2 [7]=2 [80]=2 [9]=2 [11]=3 [116]=4 [12]=5 [87]=6 [91]=2 [119]=7 [90]=2 [21]=2 [18]=2 [122]=2 [125]=8 [24]=2 [95]=2 [96]=9 [129]=2 [62]=2 [103]=2 [32]=2 [71]=17 [35]=2 [134]=2 [105]=2 [37]=10 [107]=11 [72]=13 [109]=12 [110]=2 [112]=17)"
|
||||||
literal_transitions[3]="([72]=18 [13]=2 [32]=18 [54]=18 [55]=18 [89]=18 [104]=2 [120]=2 [76]=1 [16]=2 [123]=18 [3]=1 [5]=2 [63]=18 [127]=2 [129]=18 [80]=18 [130]=18 [83]=18 [31]=18 [48]=2 [12]=2 [85]=18 [10]=18 [86]=18 [137]=18)"
|
literal_transitions[1]="([47]=2 [46]=2 [114]=2 [7]=2 [80]=2 [9]=2 [11]=3 [116]=4 [12]=5 [87]=6 [91]=2 [119]=7 [90]=2 [21]=2 [18]=2 [122]=2 [125]=8 [24]=2 [95]=2 [96]=9 [129]=2 [62]=2 [103]=2 [32]=2 [35]=2 [105]=2 [37]=10 [107]=11 [110]=2 [109]=12 [72]=13 [134]=2 [74]=2)"
|
||||||
literal_transitions[7]="([103]=1 [74]=2 [33]=3 [1]=2 [2]=2 [77]=2 [105]=4 [36]=2 [40]=2 [45]=2 [112]=2 [84]=6 [113]=8 [51]=2 [53]=2 [88]=9 [117]=2 [119]=2 [121]=2 [15]=2 [58]=10 [59]=2 [17]=11 [122]=12 [19]=2 [124]=2 [126]=2 [25]=13 [67]=2 [97]=2 [27]=2 [28]=14 [100]=2)"
|
literal_transitions[3]="([124]=2 [57]=14 [58]=14 [41]=14 [94]=14 [26]=2 [25]=2 [48]=4 [4]=14 [60]=2 [61]=14 [115]=14 [102]=14 [10]=2 [67]=4 [89]=2 [33]=14 [135]=14 [88]=14 [53]=14 [106]=14 [39]=14 [16]=2 [123]=14 [137]=2 [111]=14)"
|
||||||
literal_transitions[8]="([128]=2 [131]=2 [0]=2 [73]=2 [35]=2 [106]=2 [37]=2 [107]=2 [4]=2 [78]=2 [39]=2 [79]=2 [110]=2 [6]=2 [41]=2 [42]=2 [81]=2 [82]=2 [46]=2 [47]=2 [9]=2 [109]=2 [50]=2 [52]=2 [11]=2 [115]=2 [87]=2 [49]=2 [56]=2 [90]=2 [57]=2 [91]=2 [92]=2 [60]=2 [61]=2 [125]=2 [93]=2 [62]=2 [20]=2 [95]=2 [22]=2 [23]=2 [64]=2 [65]=2 [24]=2 [132]=2 [26]=2 [68]=2 [98]=2 [69]=2 [29]=2 [136]=2 [70]=2 [99]=2)"
|
literal_transitions[6]="([113]=2)"
|
||||||
literal_transitions[9]="([114]=15 [111]=16)"
|
literal_transitions[10]="([8]=2)"
|
||||||
literal_transitions[11]="([101]=2)"
|
literal_transitions[11]="([13]=19 [73]=18)"
|
||||||
literal_transitions[13]="([21]=1 [116]=1 [30]=1 [135]=1 [118]=1 [43]=1 [71]=1)"
|
literal_transitions[12]="([0]=2 [75]=2 [1]=2 [76]=2 [42]=2 [43]=2 [3]=2 [44]=2 [45]=2 [78]=2 [79]=2 [49]=2 [81]=2 [51]=2 [82]=2 [84]=2 [85]=2 [117]=2 [86]=2 [118]=2 [14]=2 [120]=2 [54]=2 [121]=2 [17]=2 [92]=2 [20]=2 [93]=2 [22]=2 [126]=2 [23]=2 [59]=2 [127]=2 [27]=2 [28]=2 [29]=2 [97]=2 [128]=2 [130]=2 [63]=2 [31]=2 [64]=2 [65]=2 [66]=2 [100]=2 [68]=2 [34]=2 [69]=2 [36]=2 [101]=2 [131]=2 [108]=2 [133]=2 [136]=2)"
|
||||||
literal_transitions[14]="([38]=2)"
|
literal_transitions[13]="([77]=4 [5]=4 [98]=4 [55]=4 [70]=4 [50]=4 [56]=4)"
|
||||||
literal_transitions[15]="([8]=2 [66]=2 [14]=2 [133]=2)"
|
literal_transitions[14]="([38]=2 [40]=2)"
|
||||||
literal_transitions[17]="([75]=19)"
|
literal_transitions[15]="([6]=16)"
|
||||||
literal_transitions[18]="([18]=2 [7]=2)"
|
literal_transitions[16]="([52]=17 [99]=17)"
|
||||||
literal_transitions[19]="([34]=5 [44]=5)"
|
literal_transitions[19]="([83]=2 [15]=2 [104]=2 [19]=2)"
|
||||||
literal_transitions[20]="([134]=2 [94]=2)"
|
literal_transitions[20]="([30]=2 [132]=2)"
|
||||||
|
|
||||||
declare -A match_anything_transitions
|
declare -A match_anything_transitions
|
||||||
match_anything_transitions=([1]=2 [0]=7 [6]=2 [20]=2 [10]=2 [2]=17 [7]=7 [12]=2 [14]=17 [16]=2 [4]=20 [11]=17)
|
match_anything_transitions=([6]=15 [7]=2 [0]=1 [5]=20 [4]=2 [20]=2 [2]=15 [18]=2 [8]=2 [9]=2 [10]=15 [1]=1)
|
||||||
declare -A subword_transitions
|
declare -A subword_transitions
|
||||||
|
|
||||||
local state=0
|
local state=0
|
||||||
|
@ -108,7 +108,7 @@ _hyprctl () {
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
declare -A commands
|
declare -A commands
|
||||||
commands=([16]=2 [4]=3 [12]=1 [10]=0)
|
commands=([7]=0 [8]=3 [18]=2 [5]=1)
|
||||||
if [[ -v "commands[$state]" ]]; then
|
if [[ -v "commands[$state]" ]]; then
|
||||||
local command_id=${commands[$state]}
|
local command_id=${commands[$state]}
|
||||||
local completions=()
|
local completions=()
|
||||||
|
|
|
@ -3,19 +3,19 @@ function _hyprctl_3
|
||||||
hyprctl monitors | grep Monitor | awk '{ print $2 }'
|
hyprctl monitors | grep Monitor | awk '{ print $2 }'
|
||||||
end
|
end
|
||||||
|
|
||||||
function _hyprctl_2
|
function _hyprctl_1
|
||||||
set 1 $argv[1]
|
set 1 $argv[1]
|
||||||
hyprpm list | grep "Plugin" | awk '{print $4}'
|
hyprpm list | grep "Plugin" | awk '{print $4}'
|
||||||
end
|
end
|
||||||
|
|
||||||
function _hyprctl_1
|
function _hyprctl_2
|
||||||
set 1 $argv[1]
|
set 1 $argv[1]
|
||||||
hyprctl clients | grep class | awk '{print $2}'
|
hyprctl devices | sed -n '/Keyboard at/{n; s/^\s\+//; p}'
|
||||||
end
|
end
|
||||||
|
|
||||||
function _hyprctl_4
|
function _hyprctl_4
|
||||||
set 1 $argv[1]
|
set 1 $argv[1]
|
||||||
hyprctl devices | sed -n '/Keyboard at/{n; s/^\s\+//; p}'
|
hyprctl clients | grep class | awk '{print $2}'
|
||||||
end
|
end
|
||||||
|
|
||||||
function _hyprctl
|
function _hyprctl
|
||||||
|
@ -29,125 +29,125 @@ function _hyprctl
|
||||||
set COMP_CWORD (count $COMP_WORDS)
|
set COMP_CWORD (count $COMP_WORDS)
|
||||||
end
|
end
|
||||||
|
|
||||||
set --local literals "cyclenext" "globalshortcuts" "cursorpos" "bordersize" "renameworkspace" "animationstyle" "focuswindow" "0" "auto" "swapnext" "forceallowsinput" "moveactive" "activebordercolor" "alphafullscreen" "wayland" "layers" "minsize" "monitors" "1" "kill" "settiled" "3" "focusmonitor" "swapwindow" "moveoutofgroup" "notify" "movecursor" "setcursor" "seterror" "movecurrentworkspacetomonitor" "4" "nomaxsize" "forcenoanims" "setprop" "-i" "togglefloating" "workspacerules" "movetoworkspace" "disable" "setignoregrouplock" "workspaces" "movegroupwindow" "closewindow" "0" "--instance" "binds" "movewindow" "splitratio" "alpha" "denywindowfromgroup" "workspace" "configerrors" "togglegroup" "getoption" "forceopaque" "keepaspectratio" "killactive" "pass" "decorations" "devices" "focuscurrentorlast" "submap" "global" "alphafullscreenoverride" "forcerendererreload" "movewindowpixel" "headless" "version" "dpms" "resizeactive" "moveintogroup" "5" "alphaoverride" "setfloating" "rollinglog" "::=" "rounding" "layouts" "moveworkspacetomonitor" "exec" "alphainactiveoverride" "alterzorder" "fakefullscreen" "nofocus" "keyword" "forcenoborder" "forcenodim" "pin" "output" "forcenoblur" "togglespecialworkspace" "fullscreen" "toggleopaque" "focusworkspaceoncurrentmonitor" "next" "changegroupactive" "-j" "instances" "execr" "exit" "clients" "all" "--batch" "dismissnotify" "inactivebordercolor" "switchxkblayout" "movetoworkspacesilent" "movewindoworgroup" "-r" "movefocus" "focusurgentorlast" "remove" "activeworkspace" "dispatch" "create" "centerwindow" "2" "hyprpaper" "-1" "reload" "alphainactive" "systeminfo" "plugin" "dimaround" "activewindow" "swapactiveworkspaces" "splash" "maxsize" "lockactivegroup" "windowdancecompat" "forceopaqueoverriden" "lockgroups" "movecursortocorner" "x11" "prev" "1" "resizewindowpixel" "forcenoshadow"
|
set --local literals "resizeactive" "changegroupactive" "-r" "moveintogroup" "forceallowsinput" "4" "::=" "systeminfo" "all" "layouts" "animationstyle" "setprop" "switchxkblayout" "create" "denywindowfromgroup" "headless" "activebordercolor" "exec" "setcursor" "wayland" "focusurgentorlast" "workspacerules" "movecurrentworkspacetomonitor" "movetoworkspacesilent" "hyprpaper" "alpha" "inactivebordercolor" "movegroupwindow" "movecursortocorner" "movewindowpixel" "prev" "movewindow" "clients" "dimaround" "setignoregrouplock" "splash" "execr" "monitors" "0" "forcenoborder" "1" "nomaxsize" "splitratio" "moveactive" "pass" "swapnext" "devices" "layers" "rounding" "lockactivegroup" "5" "moveworkspacetomonitor" "-i" "forcenodim" "pin" "0" "1" "forceopaque" "forcenoshadow" "setfloating" "minsize" "alphaoverride" "workspaces" "cyclenext" "alterzorder" "togglegroup" "lockgroups" "bordersize" "dpms" "focuscurrentorlast" "-1" "--batch" "notify" "remove" "instances" "moveoutofgroup" "killactive" "2" "movetoworkspace" "movecursor" "configerrors" "closewindow" "swapwindow" "auto" "forcerendererreload" "centerwindow" "focuswindow" "seterror" "nofocus" "alphafullscreen" "binds" "version" "togglespecialworkspace" "fullscreen" "windowdancecompat" "globalshortcuts" "keyword" "toggleopaque" "3" "--instance" "togglefloating" "renameworkspace" "alphafullscreenoverride" "activeworkspace" "x11" "kill" "forceopaqueoverriden" "output" "global" "dispatch" "reload" "forcenoblur" "-j" "disable" "activewindow" "keepaspectratio" "dismissnotify" "focusmonitor" "movefocus" "plugin" "exit" "workspace" "getoption" "alphainactiveoverride" "alphainactive" "decorations" "settiled" "resizewindowpixel" "fakefullscreen" "rollinglog" "swapactiveworkspaces" "submap" "next" "movewindoworgroup" "cursorpos" "forcenoanims" "focusworkspaceoncurrentmonitor" "maxsize"
|
||||||
|
|
||||||
set --local descriptions
|
set --local descriptions
|
||||||
set descriptions[1] "Focus the next window on a workspace"
|
set descriptions[1] "Resize the active window"
|
||||||
set descriptions[3] "Get the current cursor pos in global layout coordinates"
|
set descriptions[2] "Switch to the next window in a group"
|
||||||
set descriptions[5] "Rename a workspace"
|
set descriptions[3] "Refresh state after issuing the command"
|
||||||
set descriptions[7] "Focus the first window matching"
|
set descriptions[4] "Move the active window into a group"
|
||||||
set descriptions[10] "Swap the focused window with the next window"
|
set descriptions[6] "CONFUSED"
|
||||||
set descriptions[12] "Move the active window"
|
set descriptions[8] "Print system info"
|
||||||
set descriptions[16] "List the layers"
|
set descriptions[10] "List all layouts available (including plugin ones)"
|
||||||
set descriptions[18] "List active outputs with their properties"
|
set descriptions[12] "Set a property of a window"
|
||||||
set descriptions[20] "Get into a kill mode, where you can kill an app by clicking on it"
|
set descriptions[13] "Set the xkb layout index for a keyboard"
|
||||||
set descriptions[21] "Set the current window's floating state to false"
|
set descriptions[15] "Prohibit the active window from becoming or being inserted into group"
|
||||||
set descriptions[22] "ERROR"
|
set descriptions[18] "Execute a shell command"
|
||||||
set descriptions[23] "Focus a monitor"
|
set descriptions[19] "Set the cursor theme and reloads the cursor manager"
|
||||||
set descriptions[24] "Swap the active window with another window"
|
set descriptions[21] "Focus the urgent window or the last window"
|
||||||
set descriptions[25] "Move the active window out of a group"
|
set descriptions[22] "Get the list of defined workspace rules"
|
||||||
set descriptions[26] "Send a notification using the built-in Hyprland notification system"
|
set descriptions[23] "Move the active workspace to a monitor"
|
||||||
set descriptions[27] "Move the cursor to a specified position"
|
set descriptions[24] "Move window doesnt switch to the workspace"
|
||||||
set descriptions[28] "Set the cursor theme and reloads the cursor manager"
|
set descriptions[25] "Interact with hyprpaper if present"
|
||||||
set descriptions[29] "Set the hyprctl error string"
|
set descriptions[28] "Swap the active window with the next or previous in a group"
|
||||||
set descriptions[30] "Move the active workspace to a monitor"
|
set descriptions[29] "Move the cursor to the corner of the active window"
|
||||||
set descriptions[31] "CONFUSED"
|
set descriptions[30] "Move a selected window"
|
||||||
set descriptions[34] "Set a property of a window"
|
set descriptions[32] "Move the active window in a direction or to a monitor"
|
||||||
set descriptions[35] "Specify the Hyprland instance"
|
set descriptions[33] "List all windows with their properties"
|
||||||
set descriptions[36] "Toggle the current window's floating state"
|
set descriptions[35] "Temporarily enable or disable binds:ignore_group_lock"
|
||||||
set descriptions[37] "Get the list of defined workspace rules"
|
set descriptions[36] "Print the current random splash"
|
||||||
set descriptions[38] "Move the focused window to a workspace"
|
set descriptions[37] "Execute a raw shell command"
|
||||||
set descriptions[40] "Temporarily enable or disable binds:ignore_group_lock"
|
set descriptions[38] "List active outputs with their properties"
|
||||||
set descriptions[41] "List all workspaces with their properties"
|
set descriptions[43] "Change the split ratio"
|
||||||
set descriptions[42] "Swap the active window with the next or previous in a group"
|
set descriptions[44] "Move the active window"
|
||||||
set descriptions[43] "Close a specified window"
|
set descriptions[45] "Pass the key to a specified window"
|
||||||
set descriptions[44] "WARNING"
|
set descriptions[46] "Swap the focused window with the next window"
|
||||||
set descriptions[45] "Specify the Hyprland instance"
|
set descriptions[47] "List all connected keyboards and mice"
|
||||||
set descriptions[46] "List all registered binds"
|
set descriptions[48] "List the layers"
|
||||||
set descriptions[47] "Move the active window in a direction or to a monitor"
|
set descriptions[50] "Lock the focused group"
|
||||||
set descriptions[48] "Change the split ratio"
|
set descriptions[51] "OK"
|
||||||
set descriptions[50] "Prohibit the active window from becoming or being inserted into group"
|
set descriptions[52] "Move a workspace to a monitor"
|
||||||
set descriptions[51] "Change the workspace"
|
set descriptions[53] "Specify the Hyprland instance"
|
||||||
set descriptions[52] "List all current config parsing errors"
|
set descriptions[55] "Pin a window"
|
||||||
set descriptions[53] "Toggle the current active window into a group"
|
set descriptions[56] "WARNING"
|
||||||
set descriptions[54] "Get the config option status (values)"
|
set descriptions[57] "INFO"
|
||||||
set descriptions[57] "Close the active window"
|
set descriptions[60] "Set the current window's floating state to true"
|
||||||
set descriptions[58] "Pass the key to a specified window"
|
set descriptions[63] "List all workspaces with their properties"
|
||||||
set descriptions[59] "List all decorations and their info"
|
set descriptions[64] "Focus the next window on a workspace"
|
||||||
set descriptions[60] "List all connected keyboards and mice"
|
set descriptions[65] "Modify the window stack order of the active or specified window"
|
||||||
set descriptions[61] "Switch focus from current to previously focused window"
|
set descriptions[66] "Toggle the current active window into a group"
|
||||||
set descriptions[62] "Change the current mapping group"
|
set descriptions[67] "Lock the groups"
|
||||||
set descriptions[63] "Execute a Global Shortcut using the GlobalShortcuts portal"
|
|
||||||
set descriptions[65] "Force the renderer to reload all resources and outputs"
|
|
||||||
set descriptions[66] "Move a selected window"
|
|
||||||
set descriptions[68] "Print the Hyprland version: flags, commit and branch of build"
|
|
||||||
set descriptions[69] "Set all monitors' DPMS status"
|
set descriptions[69] "Set all monitors' DPMS status"
|
||||||
set descriptions[70] "Resize the active window"
|
set descriptions[70] "Switch focus from current to previously focused window"
|
||||||
set descriptions[71] "Move the active window into a group"
|
set descriptions[71] "No Icon"
|
||||||
set descriptions[72] "OK"
|
set descriptions[72] "Execute a batch of commands separated by ;"
|
||||||
set descriptions[74] "Set the current window's floating state to true"
|
set descriptions[73] "Send a notification using the built-in Hyprland notification system"
|
||||||
set descriptions[75] "Print tail of the log"
|
set descriptions[75] "List all running Hyprland instances and their info"
|
||||||
set descriptions[78] "List all layouts available (including plugin ones)"
|
set descriptions[76] "Move the active window out of a group"
|
||||||
set descriptions[79] "Move a workspace to a monitor"
|
set descriptions[77] "Close the active window"
|
||||||
set descriptions[80] "Execute a shell command"
|
set descriptions[78] "HINT"
|
||||||
set descriptions[82] "Modify the window stack order of the active or specified window"
|
set descriptions[79] "Move the focused window to a workspace"
|
||||||
set descriptions[83] "Toggle the focused window's internal fullscreen state"
|
set descriptions[80] "Move the cursor to a specified position"
|
||||||
set descriptions[85] "Issue a keyword to call a config keyword dynamically"
|
set descriptions[81] "List all current config parsing errors"
|
||||||
set descriptions[88] "Pin a window"
|
set descriptions[82] "Close a specified window"
|
||||||
set descriptions[89] "Allows adding/removing fake outputs to a specific backend"
|
set descriptions[83] "Swap the active window with another window"
|
||||||
set descriptions[91] "Toggle a special workspace on/off"
|
set descriptions[85] "Force the renderer to reload all resources and outputs"
|
||||||
set descriptions[92] "Toggle the focused window's fullscreen state"
|
set descriptions[86] "Center the active window"
|
||||||
set descriptions[93] "Toggle the current window to always be opaque"
|
set descriptions[87] "Focus the first window matching"
|
||||||
set descriptions[94] "Focus the requested workspace"
|
set descriptions[88] "Set the hyprctl error string"
|
||||||
set descriptions[96] "Switch to the next window in a group"
|
set descriptions[91] "List all registered binds"
|
||||||
set descriptions[97] "Output in JSON format"
|
set descriptions[92] "Print the Hyprland version: flags, commit and branch of build"
|
||||||
set descriptions[98] "List all running Hyprland instances and their info"
|
set descriptions[93] "Toggle a special workspace on/off"
|
||||||
set descriptions[99] "Execute a raw shell command"
|
set descriptions[94] "Toggle the focused window's fullscreen state"
|
||||||
set descriptions[100] "Exit the compositor with no questions asked"
|
set descriptions[97] "Issue a keyword to call a config keyword dynamically"
|
||||||
set descriptions[101] "List all windows with their properties"
|
set descriptions[98] "Toggle the current window to always be opaque"
|
||||||
set descriptions[103] "Execute a batch of commands separated by ;"
|
set descriptions[99] "ERROR"
|
||||||
set descriptions[104] "Dismiss all or up to amount of notifications"
|
set descriptions[100] "Specify the Hyprland instance"
|
||||||
set descriptions[106] "Set the xkb layout index for a keyboard"
|
set descriptions[101] "Toggle the current window's floating state"
|
||||||
set descriptions[107] "Move window doesnt switch to the workspace"
|
set descriptions[102] "Rename a workspace"
|
||||||
set descriptions[108] "Behave as moveintogroup"
|
set descriptions[104] "Get the active workspace name and its properties"
|
||||||
set descriptions[109] "Refresh state after issuing the command"
|
set descriptions[106] "Get into a kill mode, where you can kill an app by clicking on it"
|
||||||
set descriptions[110] "Move the focus in a direction"
|
set descriptions[108] "Allows adding/removing fake outputs to a specific backend"
|
||||||
set descriptions[111] "Focus the urgent window or the last window"
|
set descriptions[109] "Execute a Global Shortcut using the GlobalShortcuts portal"
|
||||||
set descriptions[113] "Get the active workspace name and its properties"
|
set descriptions[110] "Issue a dispatch to call a keybind dispatcher with an arg"
|
||||||
set descriptions[114] "Issue a dispatch to call a keybind dispatcher with an arg"
|
set descriptions[111] "Force reload the config"
|
||||||
set descriptions[116] "Center the active window"
|
set descriptions[113] "Output in JSON format"
|
||||||
set descriptions[117] "HINT"
|
set descriptions[115] "Get the active window name and its properties"
|
||||||
set descriptions[118] "Interact with hyprpaper if present"
|
set descriptions[117] "Dismiss all or up to amount of notifications"
|
||||||
set descriptions[119] "No Icon"
|
set descriptions[118] "Focus a monitor"
|
||||||
set descriptions[120] "Force reload the config"
|
set descriptions[119] "Move the focus in a direction"
|
||||||
set descriptions[122] "Print system info"
|
set descriptions[120] "Interact with a plugin"
|
||||||
set descriptions[123] "Interact with a plugin"
|
set descriptions[121] "Exit the compositor with no questions asked"
|
||||||
set descriptions[125] "Get the active window name and its properties"
|
set descriptions[122] "Change the workspace"
|
||||||
set descriptions[126] "Swap the active workspaces between two monitors"
|
set descriptions[123] "Get the config option status (values)"
|
||||||
set descriptions[127] "Print the current random splash"
|
set descriptions[126] "List all decorations and their info"
|
||||||
set descriptions[129] "Lock the focused group"
|
set descriptions[127] "Set the current window's floating state to false"
|
||||||
set descriptions[132] "Lock the groups"
|
set descriptions[128] "Resize a selected window"
|
||||||
set descriptions[133] "Move the cursor to the corner of the active window"
|
set descriptions[129] "Toggle the focused window's internal fullscreen state"
|
||||||
set descriptions[136] "INFO"
|
set descriptions[130] "Print tail of the log"
|
||||||
set descriptions[137] "Resize a selected window"
|
set descriptions[131] "Swap the active workspaces between two monitors"
|
||||||
|
set descriptions[132] "Change the current mapping group"
|
||||||
|
set descriptions[134] "Behave as moveintogroup"
|
||||||
|
set descriptions[135] "Get the current cursor pos in global layout coordinates"
|
||||||
|
set descriptions[137] "Focus the requested workspace"
|
||||||
|
|
||||||
set --local literal_transitions
|
set --local literal_transitions
|
||||||
set literal_transitions[1] "set inputs 104 75 34 2 3 78 106 37 109 41 46 113 85 114 52 54 89 118 120 122 16 59 60 18 123 20 125 127 26 68 97 98 28 29 101 103; set tos 2 3 4 3 3 3 5 3 6 3 3 3 7 9 3 3 10 3 3 3 3 11 3 12 13 3 3 3 14 3 6 3 3 15 3 6"
|
set literal_transitions[1] "set inputs 75 3 48 47 115 8 81 10 12 117 13 88 92 120 91 22 19 123 126 25 96 97 130 63 104 33 72 36 135 106 38 108 73 110 111 113; set tos 3 18 3 3 3 3 3 3 4 5 6 7 3 8 3 3 3 3 9 3 3 10 3 3 3 3 18 3 3 3 11 12 14 13 3 18"
|
||||||
set literal_transitions[4] "set inputs 73 14 33 55 56 90 105 121 77 17 124 4 6 64 128 130 81 131 84 32 49 13 86 11 87 138; set tos 19 3 19 19 19 19 3 3 2 3 19 2 3 19 3 19 19 19 19 19 3 3 19 19 19 19"
|
set literal_transitions[2] "set inputs 48 47 115 8 81 10 12 117 13 88 92 120 91 22 19 123 126 25 96 97 130 63 104 33 36 106 38 108 111 110 73 135 75; set tos 3 3 3 3 3 3 4 5 6 7 3 8 3 3 3 3 9 3 3 10 3 3 3 3 3 3 11 12 3 13 14 3 3"
|
||||||
set literal_transitions[8] "set inputs 104 75 34 2 3 78 106 37 41 46 113 85 114 52 54 89 118 120 122 16 59 60 18 123 20 125 127 26 68 98 28 29 101; set tos 2 3 4 3 3 3 5 3 3 3 3 7 9 3 3 10 3 3 3 3 11 3 12 13 3 3 3 14 3 3 3 15 3"
|
set literal_transitions[4] "set inputs 125 58 59 42 95 27 26 49 5 61 62 116 103 11 68 90 34 136 89 54 107 40 17 124 138 112; set tos 3 15 15 15 15 3 3 5 15 3 15 15 15 3 5 3 15 15 15 15 15 15 3 15 3 15"
|
||||||
set literal_transitions[9] "set inputs 129 132 1 74 36 107 38 108 5 79 40 80 111 7 42 43 82 83 47 48 10 110 51 53 12 116 88 50 57 91 58 92 93 61 62 126 94 63 21 96 23 24 65 66 25 133 27 69 99 70 30 137 71 100; set tos 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3"
|
set literal_transitions[7] "set inputs 114; set tos 3"
|
||||||
set literal_transitions[10] "set inputs 115 112; set tos 16 17"
|
set literal_transitions[11] "set inputs 9; set tos 3"
|
||||||
set literal_transitions[12] "set inputs 102; set tos 3"
|
set literal_transitions[12] "set inputs 14 74; set tos 20 19"
|
||||||
set literal_transitions[14] "set inputs 22 117 31 136 119 44 72; set tos 2 2 2 2 2 2 2"
|
set literal_transitions[13] "set inputs 1 76 2 77 43 44 4 45 46 79 80 50 82 52 83 85 86 118 87 119 15 121 55 122 18 93 21 94 23 127 24 60 128 28 29 30 98 129 131 64 32 65 66 67 101 69 35 70 37 102 132 109 134 137; set tos 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3"
|
||||||
set literal_transitions[15] "set inputs 39; set tos 3"
|
set literal_transitions[14] "set inputs 78 6 99 56 71 51 57; set tos 5 5 5 5 5 5 5"
|
||||||
set literal_transitions[16] "set inputs 9 67 15 134; set tos 3 3 3 3"
|
set literal_transitions[15] "set inputs 39 41; set tos 3 3"
|
||||||
set literal_transitions[18] "set inputs 76; set tos 20"
|
set literal_transitions[16] "set inputs 7; set tos 17"
|
||||||
set literal_transitions[19] "set inputs 19 8; set tos 3 3"
|
set literal_transitions[17] "set inputs 53 100; set tos 18 18"
|
||||||
set literal_transitions[20] "set inputs 35 45; set tos 6 6"
|
set literal_transitions[20] "set inputs 84 16 105 20; set tos 3 3 3 3"
|
||||||
set literal_transitions[21] "set inputs 135 95; set tos 3 3"
|
set literal_transitions[21] "set inputs 31 133; set tos 3 3"
|
||||||
|
|
||||||
set --local match_anything_transitions_from 2 1 7 21 11 3 8 13 15 17 5 12
|
set --local match_anything_transitions_from 7 8 1 6 5 21 3 19 9 10 11 2
|
||||||
set --local match_anything_transitions_to 3 8 3 3 3 18 8 3 18 3 21 18
|
set --local match_anything_transitions_to 16 3 2 21 3 3 16 3 3 3 16 2
|
||||||
|
|
||||||
set --local state 1
|
set --local state 1
|
||||||
set --local word_index 2
|
set --local word_index 2
|
||||||
|
@ -199,8 +199,8 @@ function _hyprctl
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set command_states 17 5 13 11
|
set command_states 8 9 19 6
|
||||||
set command_ids 3 4 2 1
|
set command_ids 1 4 3 2
|
||||||
if contains $state $command_states
|
if contains $state $command_states
|
||||||
set --local index (contains --index $state $command_states)
|
set --local index (contains --index $state $command_states)
|
||||||
set --local function_id $command_ids[$index]
|
set --local function_id $command_ids[$index]
|
||||||
|
|
|
@ -4,138 +4,138 @@ _hyprctl_cmd_2 () {
|
||||||
hyprctl monitors | grep Monitor | awk '{ print $2 }'
|
hyprctl monitors | grep Monitor | awk '{ print $2 }'
|
||||||
}
|
}
|
||||||
|
|
||||||
_hyprctl_cmd_1 () {
|
_hyprctl_cmd_0 () {
|
||||||
hyprpm list | grep "Plugin" | awk '{print $4}'
|
hyprpm list | grep "Plugin" | awk '{print $4}'
|
||||||
}
|
}
|
||||||
|
|
||||||
_hyprctl_cmd_0 () {
|
_hyprctl_cmd_1 () {
|
||||||
hyprctl clients | grep class | awk '{print $2}'
|
|
||||||
}
|
|
||||||
|
|
||||||
_hyprctl_cmd_3 () {
|
|
||||||
hyprctl devices | sed -n '/Keyboard at/{n; s/^\s\+//; p}'
|
hyprctl devices | sed -n '/Keyboard at/{n; s/^\s\+//; p}'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_hyprctl_cmd_3 () {
|
||||||
|
hyprctl clients | grep class | awk '{print $2}'
|
||||||
|
}
|
||||||
|
|
||||||
_hyprctl () {
|
_hyprctl () {
|
||||||
local -a literals=("cyclenext" "globalshortcuts" "cursorpos" "bordersize" "renameworkspace" "animationstyle" "focuswindow" "0" "auto" "swapnext" "forceallowsinput" "moveactive" "activebordercolor" "alphafullscreen" "wayland" "layers" "minsize" "monitors" "1" "kill" "settiled" "3" "focusmonitor" "swapwindow" "moveoutofgroup" "notify" "movecursor" "setcursor" "seterror" "movecurrentworkspacetomonitor" "4" "nomaxsize" "forcenoanims" "setprop" "-i" "togglefloating" "workspacerules" "movetoworkspace" "disable" "setignoregrouplock" "workspaces" "movegroupwindow" "closewindow" "0" "--instance" "binds" "movewindow" "splitratio" "alpha" "denywindowfromgroup" "workspace" "configerrors" "togglegroup" "getoption" "forceopaque" "keepaspectratio" "killactive" "pass" "decorations" "devices" "focuscurrentorlast" "submap" "global" "alphafullscreenoverride" "forcerendererreload" "movewindowpixel" "headless" "version" "dpms" "resizeactive" "moveintogroup" "5" "alphaoverride" "setfloating" "rollinglog" "::=" "rounding" "layouts" "moveworkspacetomonitor" "exec" "alphainactiveoverride" "alterzorder" "fakefullscreen" "nofocus" "keyword" "forcenoborder" "forcenodim" "pin" "output" "forcenoblur" "togglespecialworkspace" "fullscreen" "toggleopaque" "focusworkspaceoncurrentmonitor" "next" "changegroupactive" "-j" "instances" "execr" "exit" "clients" "all" "--batch" "dismissnotify" "inactivebordercolor" "switchxkblayout" "movetoworkspacesilent" "movewindoworgroup" "-r" "movefocus" "focusurgentorlast" "remove" "activeworkspace" "dispatch" "create" "centerwindow" "2" "hyprpaper" "-1" "reload" "alphainactive" "systeminfo" "plugin" "dimaround" "activewindow" "swapactiveworkspaces" "splash" "maxsize" "lockactivegroup" "windowdancecompat" "forceopaqueoverriden" "lockgroups" "movecursortocorner" "x11" "prev" "1" "resizewindowpixel" "forcenoshadow")
|
local -a literals=("resizeactive" "changegroupactive" "-r" "moveintogroup" "forceallowsinput" "4" "::=" "systeminfo" "all" "layouts" "animationstyle" "setprop" "switchxkblayout" "create" "denywindowfromgroup" "headless" "activebordercolor" "exec" "setcursor" "wayland" "focusurgentorlast" "workspacerules" "movecurrentworkspacetomonitor" "movetoworkspacesilent" "hyprpaper" "alpha" "inactivebordercolor" "movegroupwindow" "movecursortocorner" "movewindowpixel" "prev" "movewindow" "clients" "dimaround" "setignoregrouplock" "splash" "execr" "monitors" "0" "forcenoborder" "1" "nomaxsize" "splitratio" "moveactive" "pass" "swapnext" "devices" "layers" "rounding" "lockactivegroup" "5" "moveworkspacetomonitor" "-i" "forcenodim" "pin" "0" "1" "forceopaque" "forcenoshadow" "setfloating" "minsize" "alphaoverride" "workspaces" "cyclenext" "alterzorder" "togglegroup" "lockgroups" "bordersize" "dpms" "focuscurrentorlast" "-1" "--batch" "notify" "remove" "instances" "moveoutofgroup" "killactive" "2" "movetoworkspace" "movecursor" "configerrors" "closewindow" "swapwindow" "auto" "forcerendererreload" "centerwindow" "focuswindow" "seterror" "nofocus" "alphafullscreen" "binds" "version" "togglespecialworkspace" "fullscreen" "windowdancecompat" "globalshortcuts" "keyword" "toggleopaque" "3" "--instance" "togglefloating" "renameworkspace" "alphafullscreenoverride" "activeworkspace" "x11" "kill" "forceopaqueoverriden" "output" "global" "dispatch" "reload" "forcenoblur" "-j" "disable" "activewindow" "keepaspectratio" "dismissnotify" "focusmonitor" "movefocus" "plugin" "exit" "workspace" "getoption" "alphainactiveoverride" "alphainactive" "decorations" "settiled" "resizewindowpixel" "fakefullscreen" "rollinglog" "swapactiveworkspaces" "submap" "next" "movewindoworgroup" "cursorpos" "forcenoanims" "focusworkspaceoncurrentmonitor" "maxsize")
|
||||||
|
|
||||||
local -A descriptions
|
local -A descriptions
|
||||||
descriptions[1]="Focus the next window on a workspace"
|
descriptions[1]="Resize the active window"
|
||||||
descriptions[3]="Get the current cursor pos in global layout coordinates"
|
descriptions[2]="Switch to the next window in a group"
|
||||||
descriptions[5]="Rename a workspace"
|
descriptions[3]="Refresh state after issuing the command"
|
||||||
descriptions[7]="Focus the first window matching"
|
descriptions[4]="Move the active window into a group"
|
||||||
descriptions[10]="Swap the focused window with the next window"
|
descriptions[6]="CONFUSED"
|
||||||
descriptions[12]="Move the active window"
|
descriptions[8]="Print system info"
|
||||||
descriptions[16]="List the layers"
|
descriptions[10]="List all layouts available (including plugin ones)"
|
||||||
descriptions[18]="List active outputs with their properties"
|
descriptions[12]="Set a property of a window"
|
||||||
descriptions[20]="Get into a kill mode, where you can kill an app by clicking on it"
|
descriptions[13]="Set the xkb layout index for a keyboard"
|
||||||
descriptions[21]="Set the current window's floating state to false"
|
descriptions[15]="Prohibit the active window from becoming or being inserted into group"
|
||||||
descriptions[22]="ERROR"
|
descriptions[18]="Execute a shell command"
|
||||||
descriptions[23]="Focus a monitor"
|
descriptions[19]="Set the cursor theme and reloads the cursor manager"
|
||||||
descriptions[24]="Swap the active window with another window"
|
descriptions[21]="Focus the urgent window or the last window"
|
||||||
descriptions[25]="Move the active window out of a group"
|
descriptions[22]="Get the list of defined workspace rules"
|
||||||
descriptions[26]="Send a notification using the built-in Hyprland notification system"
|
descriptions[23]="Move the active workspace to a monitor"
|
||||||
descriptions[27]="Move the cursor to a specified position"
|
descriptions[24]="Move window doesnt switch to the workspace"
|
||||||
descriptions[28]="Set the cursor theme and reloads the cursor manager"
|
descriptions[25]="Interact with hyprpaper if present"
|
||||||
descriptions[29]="Set the hyprctl error string"
|
descriptions[28]="Swap the active window with the next or previous in a group"
|
||||||
descriptions[30]="Move the active workspace to a monitor"
|
descriptions[29]="Move the cursor to the corner of the active window"
|
||||||
descriptions[31]="CONFUSED"
|
descriptions[30]="Move a selected window"
|
||||||
descriptions[34]="Set a property of a window"
|
descriptions[32]="Move the active window in a direction or to a monitor"
|
||||||
descriptions[35]="Specify the Hyprland instance"
|
descriptions[33]="List all windows with their properties"
|
||||||
descriptions[36]="Toggle the current window's floating state"
|
descriptions[35]="Temporarily enable or disable binds:ignore_group_lock"
|
||||||
descriptions[37]="Get the list of defined workspace rules"
|
descriptions[36]="Print the current random splash"
|
||||||
descriptions[38]="Move the focused window to a workspace"
|
descriptions[37]="Execute a raw shell command"
|
||||||
descriptions[40]="Temporarily enable or disable binds:ignore_group_lock"
|
descriptions[38]="List active outputs with their properties"
|
||||||
descriptions[41]="List all workspaces with their properties"
|
descriptions[43]="Change the split ratio"
|
||||||
descriptions[42]="Swap the active window with the next or previous in a group"
|
descriptions[44]="Move the active window"
|
||||||
descriptions[43]="Close a specified window"
|
descriptions[45]="Pass the key to a specified window"
|
||||||
descriptions[44]="WARNING"
|
descriptions[46]="Swap the focused window with the next window"
|
||||||
descriptions[45]="Specify the Hyprland instance"
|
descriptions[47]="List all connected keyboards and mice"
|
||||||
descriptions[46]="List all registered binds"
|
descriptions[48]="List the layers"
|
||||||
descriptions[47]="Move the active window in a direction or to a monitor"
|
descriptions[50]="Lock the focused group"
|
||||||
descriptions[48]="Change the split ratio"
|
descriptions[51]="OK"
|
||||||
descriptions[50]="Prohibit the active window from becoming or being inserted into group"
|
descriptions[52]="Move a workspace to a monitor"
|
||||||
descriptions[51]="Change the workspace"
|
descriptions[53]="Specify the Hyprland instance"
|
||||||
descriptions[52]="List all current config parsing errors"
|
descriptions[55]="Pin a window"
|
||||||
descriptions[53]="Toggle the current active window into a group"
|
descriptions[56]="WARNING"
|
||||||
descriptions[54]="Get the config option status (values)"
|
descriptions[57]="INFO"
|
||||||
descriptions[57]="Close the active window"
|
descriptions[60]="Set the current window's floating state to true"
|
||||||
descriptions[58]="Pass the key to a specified window"
|
descriptions[63]="List all workspaces with their properties"
|
||||||
descriptions[59]="List all decorations and their info"
|
descriptions[64]="Focus the next window on a workspace"
|
||||||
descriptions[60]="List all connected keyboards and mice"
|
descriptions[65]="Modify the window stack order of the active or specified window"
|
||||||
descriptions[61]="Switch focus from current to previously focused window"
|
descriptions[66]="Toggle the current active window into a group"
|
||||||
descriptions[62]="Change the current mapping group"
|
descriptions[67]="Lock the groups"
|
||||||
descriptions[63]="Execute a Global Shortcut using the GlobalShortcuts portal"
|
|
||||||
descriptions[65]="Force the renderer to reload all resources and outputs"
|
|
||||||
descriptions[66]="Move a selected window"
|
|
||||||
descriptions[68]="Print the Hyprland version: flags, commit and branch of build"
|
|
||||||
descriptions[69]="Set all monitors' DPMS status"
|
descriptions[69]="Set all monitors' DPMS status"
|
||||||
descriptions[70]="Resize the active window"
|
descriptions[70]="Switch focus from current to previously focused window"
|
||||||
descriptions[71]="Move the active window into a group"
|
descriptions[71]="No Icon"
|
||||||
descriptions[72]="OK"
|
descriptions[72]="Execute a batch of commands separated by ;"
|
||||||
descriptions[74]="Set the current window's floating state to true"
|
descriptions[73]="Send a notification using the built-in Hyprland notification system"
|
||||||
descriptions[75]="Print tail of the log"
|
descriptions[75]="List all running Hyprland instances and their info"
|
||||||
descriptions[78]="List all layouts available (including plugin ones)"
|
descriptions[76]="Move the active window out of a group"
|
||||||
descriptions[79]="Move a workspace to a monitor"
|
descriptions[77]="Close the active window"
|
||||||
descriptions[80]="Execute a shell command"
|
descriptions[78]="HINT"
|
||||||
descriptions[82]="Modify the window stack order of the active or specified window"
|
descriptions[79]="Move the focused window to a workspace"
|
||||||
descriptions[83]="Toggle the focused window's internal fullscreen state"
|
descriptions[80]="Move the cursor to a specified position"
|
||||||
descriptions[85]="Issue a keyword to call a config keyword dynamically"
|
descriptions[81]="List all current config parsing errors"
|
||||||
descriptions[88]="Pin a window"
|
descriptions[82]="Close a specified window"
|
||||||
descriptions[89]="Allows adding/removing fake outputs to a specific backend"
|
descriptions[83]="Swap the active window with another window"
|
||||||
descriptions[91]="Toggle a special workspace on/off"
|
descriptions[85]="Force the renderer to reload all resources and outputs"
|
||||||
descriptions[92]="Toggle the focused window's fullscreen state"
|
descriptions[86]="Center the active window"
|
||||||
descriptions[93]="Toggle the current window to always be opaque"
|
descriptions[87]="Focus the first window matching"
|
||||||
descriptions[94]="Focus the requested workspace"
|
descriptions[88]="Set the hyprctl error string"
|
||||||
descriptions[96]="Switch to the next window in a group"
|
descriptions[91]="List all registered binds"
|
||||||
descriptions[97]="Output in JSON format"
|
descriptions[92]="Print the Hyprland version: flags, commit and branch of build"
|
||||||
descriptions[98]="List all running Hyprland instances and their info"
|
descriptions[93]="Toggle a special workspace on/off"
|
||||||
descriptions[99]="Execute a raw shell command"
|
descriptions[94]="Toggle the focused window's fullscreen state"
|
||||||
descriptions[100]="Exit the compositor with no questions asked"
|
descriptions[97]="Issue a keyword to call a config keyword dynamically"
|
||||||
descriptions[101]="List all windows with their properties"
|
descriptions[98]="Toggle the current window to always be opaque"
|
||||||
descriptions[103]="Execute a batch of commands separated by ;"
|
descriptions[99]="ERROR"
|
||||||
descriptions[104]="Dismiss all or up to amount of notifications"
|
descriptions[100]="Specify the Hyprland instance"
|
||||||
descriptions[106]="Set the xkb layout index for a keyboard"
|
descriptions[101]="Toggle the current window's floating state"
|
||||||
descriptions[107]="Move window doesnt switch to the workspace"
|
descriptions[102]="Rename a workspace"
|
||||||
descriptions[108]="Behave as moveintogroup"
|
descriptions[104]="Get the active workspace name and its properties"
|
||||||
descriptions[109]="Refresh state after issuing the command"
|
descriptions[106]="Get into a kill mode, where you can kill an app by clicking on it"
|
||||||
descriptions[110]="Move the focus in a direction"
|
descriptions[108]="Allows adding/removing fake outputs to a specific backend"
|
||||||
descriptions[111]="Focus the urgent window or the last window"
|
descriptions[109]="Execute a Global Shortcut using the GlobalShortcuts portal"
|
||||||
descriptions[113]="Get the active workspace name and its properties"
|
descriptions[110]="Issue a dispatch to call a keybind dispatcher with an arg"
|
||||||
descriptions[114]="Issue a dispatch to call a keybind dispatcher with an arg"
|
descriptions[111]="Force reload the config"
|
||||||
descriptions[116]="Center the active window"
|
descriptions[113]="Output in JSON format"
|
||||||
descriptions[117]="HINT"
|
descriptions[115]="Get the active window name and its properties"
|
||||||
descriptions[118]="Interact with hyprpaper if present"
|
descriptions[117]="Dismiss all or up to amount of notifications"
|
||||||
descriptions[119]="No Icon"
|
descriptions[118]="Focus a monitor"
|
||||||
descriptions[120]="Force reload the config"
|
descriptions[119]="Move the focus in a direction"
|
||||||
descriptions[122]="Print system info"
|
descriptions[120]="Interact with a plugin"
|
||||||
descriptions[123]="Interact with a plugin"
|
descriptions[121]="Exit the compositor with no questions asked"
|
||||||
descriptions[125]="Get the active window name and its properties"
|
descriptions[122]="Change the workspace"
|
||||||
descriptions[126]="Swap the active workspaces between two monitors"
|
descriptions[123]="Get the config option status (values)"
|
||||||
descriptions[127]="Print the current random splash"
|
descriptions[126]="List all decorations and their info"
|
||||||
descriptions[129]="Lock the focused group"
|
descriptions[127]="Set the current window's floating state to false"
|
||||||
descriptions[132]="Lock the groups"
|
descriptions[128]="Resize a selected window"
|
||||||
descriptions[133]="Move the cursor to the corner of the active window"
|
descriptions[129]="Toggle the focused window's internal fullscreen state"
|
||||||
descriptions[136]="INFO"
|
descriptions[130]="Print tail of the log"
|
||||||
descriptions[137]="Resize a selected window"
|
descriptions[131]="Swap the active workspaces between two monitors"
|
||||||
|
descriptions[132]="Change the current mapping group"
|
||||||
|
descriptions[134]="Behave as moveintogroup"
|
||||||
|
descriptions[135]="Get the current cursor pos in global layout coordinates"
|
||||||
|
descriptions[137]="Focus the requested workspace"
|
||||||
|
|
||||||
local -A literal_transitions
|
local -A literal_transitions
|
||||||
literal_transitions[1]="([104]=2 [75]=3 [34]=4 [2]=3 [3]=3 [78]=3 [106]=5 [37]=3 [109]=6 [41]=3 [46]=3 [113]=3 [85]=7 [114]=9 [52]=3 [54]=3 [89]=10 [118]=3 [120]=3 [122]=3 [16]=3 [59]=11 [60]=3 [18]=12 [123]=13 [20]=3 [125]=3 [127]=3 [26]=14 [68]=3 [97]=6 [98]=3 [28]=3 [29]=15 [101]=3 [103]=6)"
|
literal_transitions[1]="([75]=3 [3]=18 [48]=3 [47]=3 [115]=3 [8]=3 [81]=3 [10]=3 [12]=4 [117]=5 [13]=6 [88]=7 [92]=3 [120]=8 [91]=3 [22]=3 [19]=3 [123]=3 [126]=9 [25]=3 [96]=3 [97]=10 [130]=3 [63]=3 [104]=3 [33]=3 [72]=18 [36]=3 [135]=3 [106]=3 [38]=11 [108]=12 [73]=14 [110]=13 [111]=3 [113]=18)"
|
||||||
literal_transitions[4]="([73]=19 [14]=3 [33]=19 [55]=19 [56]=19 [90]=19 [105]=3 [121]=3 [77]=2 [17]=3 [124]=19 [4]=2 [6]=3 [64]=19 [128]=3 [130]=19 [81]=19 [131]=19 [84]=19 [32]=19 [49]=3 [13]=3 [86]=19 [11]=19 [87]=19 [138]=19)"
|
literal_transitions[2]="([48]=3 [47]=3 [115]=3 [8]=3 [81]=3 [10]=3 [12]=4 [117]=5 [13]=6 [88]=7 [92]=3 [120]=8 [91]=3 [22]=3 [19]=3 [123]=3 [126]=9 [25]=3 [96]=3 [97]=10 [130]=3 [63]=3 [104]=3 [33]=3 [36]=3 [106]=3 [38]=11 [108]=12 [111]=3 [110]=13 [73]=14 [135]=3 [75]=3)"
|
||||||
literal_transitions[8]="([104]=2 [75]=3 [34]=4 [2]=3 [3]=3 [78]=3 [106]=5 [37]=3 [41]=3 [46]=3 [113]=3 [85]=7 [114]=9 [52]=3 [54]=3 [89]=10 [118]=3 [120]=3 [122]=3 [16]=3 [59]=11 [60]=3 [18]=12 [123]=13 [20]=3 [125]=3 [127]=3 [26]=14 [68]=3 [98]=3 [28]=3 [29]=15 [101]=3)"
|
literal_transitions[4]="([125]=3 [58]=15 [59]=15 [42]=15 [95]=15 [27]=3 [26]=3 [49]=5 [5]=15 [61]=3 [62]=15 [116]=15 [103]=15 [11]=3 [68]=5 [90]=3 [34]=15 [136]=15 [89]=15 [54]=15 [107]=15 [40]=15 [17]=3 [124]=15 [138]=3 [112]=15)"
|
||||||
literal_transitions[9]="([129]=3 [132]=3 [1]=3 [74]=3 [36]=3 [107]=3 [38]=3 [108]=3 [5]=3 [79]=3 [40]=3 [80]=3 [111]=3 [7]=3 [42]=3 [43]=3 [82]=3 [83]=3 [47]=3 [48]=3 [10]=3 [110]=3 [51]=3 [53]=3 [12]=3 [116]=3 [88]=3 [50]=3 [57]=3 [91]=3 [58]=3 [92]=3 [93]=3 [61]=3 [62]=3 [126]=3 [94]=3 [63]=3 [21]=3 [96]=3 [23]=3 [24]=3 [65]=3 [66]=3 [25]=3 [133]=3 [27]=3 [69]=3 [99]=3 [70]=3 [30]=3 [137]=3 [71]=3 [100]=3)"
|
literal_transitions[7]="([114]=3)"
|
||||||
literal_transitions[10]="([115]=16 [112]=17)"
|
literal_transitions[11]="([9]=3)"
|
||||||
literal_transitions[12]="([102]=3)"
|
literal_transitions[12]="([14]=20 [74]=19)"
|
||||||
literal_transitions[14]="([22]=2 [117]=2 [31]=2 [136]=2 [119]=2 [44]=2 [72]=2)"
|
literal_transitions[13]="([1]=3 [76]=3 [2]=3 [77]=3 [43]=3 [44]=3 [4]=3 [45]=3 [46]=3 [79]=3 [80]=3 [50]=3 [82]=3 [52]=3 [83]=3 [85]=3 [86]=3 [118]=3 [87]=3 [119]=3 [15]=3 [121]=3 [55]=3 [122]=3 [18]=3 [93]=3 [21]=3 [94]=3 [23]=3 [127]=3 [24]=3 [60]=3 [128]=3 [28]=3 [29]=3 [30]=3 [98]=3 [129]=3 [131]=3 [64]=3 [32]=3 [65]=3 [66]=3 [67]=3 [101]=3 [69]=3 [35]=3 [70]=3 [37]=3 [102]=3 [132]=3 [109]=3 [134]=3 [137]=3)"
|
||||||
literal_transitions[15]="([39]=3)"
|
literal_transitions[14]="([78]=5 [6]=5 [99]=5 [56]=5 [71]=5 [51]=5 [57]=5)"
|
||||||
literal_transitions[16]="([9]=3 [67]=3 [15]=3 [134]=3)"
|
literal_transitions[15]="([39]=3 [41]=3)"
|
||||||
literal_transitions[18]="([76]=20)"
|
literal_transitions[16]="([7]=17)"
|
||||||
literal_transitions[19]="([19]=3 [8]=3)"
|
literal_transitions[17]="([53]=18 [100]=18)"
|
||||||
literal_transitions[20]="([35]=6 [45]=6)"
|
literal_transitions[20]="([84]=3 [16]=3 [105]=3 [20]=3)"
|
||||||
literal_transitions[21]="([135]=3 [95]=3)"
|
literal_transitions[21]="([31]=3 [133]=3)"
|
||||||
|
|
||||||
local -A match_anything_transitions
|
local -A match_anything_transitions
|
||||||
match_anything_transitions=([2]=3 [1]=8 [7]=3 [21]=3 [11]=3 [3]=18 [8]=8 [13]=3 [15]=18 [17]=3 [5]=21 [12]=18)
|
match_anything_transitions=([7]=16 [8]=3 [1]=2 [6]=21 [5]=3 [21]=3 [3]=16 [19]=3 [9]=3 [10]=3 [11]=16 [2]=2)
|
||||||
|
|
||||||
declare -A subword_transitions
|
declare -A subword_transitions
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ _hyprctl () {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
local -A commands=([17]=2 [5]=3 [13]=1 [11]=0)
|
local -A commands=([8]=0 [9]=3 [19]=2 [6]=1)
|
||||||
|
|
||||||
if [[ -v "commands[$state]" ]]; then
|
if [[ -v "commands[$state]" ]]; then
|
||||||
local command_id=${commands[$state]}
|
local command_id=${commands[$state]}
|
||||||
|
@ -248,4 +248,8 @@ _hyprctl () {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
compdef _hyprctl hyprctl
|
if [[ $ZSH_EVAL_CONTEXT =~ :file$ ]]; then
|
||||||
|
compdef _hyprctl hyprctl
|
||||||
|
else
|
||||||
|
_hyprctl
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue