mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-13 08:01:05 +01:00
Fix documentation
This commit is contained in:
parent
a18b9856bb
commit
9c3df5ce88
1 changed files with 4 additions and 14 deletions
|
@ -168,14 +168,9 @@ end
|
|||
---local op = output.get_by_name("DP-1")
|
||||
---
|
||||
---tag.toggle("1") -- Toggle tag 1 on the focused output
|
||||
---tag.toggle({ "1" }) -- Same as above
|
||||
---
|
||||
---tag.toggle({ "1", "DP-1" }) -- Toggle tag 1 on DP-1
|
||||
---tag.toggle({ "1", op }) -- Same as above
|
||||
---
|
||||
--- -- Verbose versions of the two above
|
||||
---tag.toggle({ name = "1", output = "DP-1" })
|
||||
---tag.toggle({ name = "1", output = op })
|
||||
---tag.toggle({ name = "1", output = "DP-1" }) -- Toggle tag 1 on "DP-1"
|
||||
---tag.toggle({ name = "1", output = op }) -- Same as above
|
||||
---
|
||||
--- -- Using a tag object
|
||||
---local t = tag.get_by_name("1")[1] -- `t` is the first tag with the name "1"
|
||||
|
@ -205,14 +200,9 @@ end
|
|||
---local op = output.get_by_name("DP-1")
|
||||
---
|
||||
---tag.switch_to("1") -- Switch to tag 1 on the focused output
|
||||
---tag.switch_to({ "1" }) -- Same as above
|
||||
---
|
||||
---tag.switch_to({ "1", "DP-1" }) -- Switch to tag 1 on DP-1
|
||||
---tag.switch_to({ "1", op }) -- Same as above
|
||||
---
|
||||
--- -- Verbose versions of the two above
|
||||
---tag.switch_to({ name = "1", output = "DP-1" })
|
||||
---tag.switch_to({ name = "1", output = op })
|
||||
---tag.switch_to({ name = "1", output = "DP-1" }) -- Switch to tag 1 on "DP-1"
|
||||
---tag.switch_to({ name = "1", output = op }) -- Same as above
|
||||
---
|
||||
--- -- Using a tag object
|
||||
---local t = tag.get_by_name("1")[1] -- `t` is the first tag with the name "1"
|
||||
|
|
Loading…
Reference in a new issue