cog(1)

πŸ“¦
version 0.18.4 Β· 3 versions
, in debian trixie, opensuse-leap 16.0

πŸ’– cog(1) β€” bestie's single-window web browser πŸ’–

okay so you opened the General Commands Manual for cog and you're like "what is this little guy" β€” let me put you on. no cap, this is a good one.


✨ NAME ✨

cog β€” single-window web browser. that's it, that's the whole vibe. 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹


---

# πŸ’… DESCRIPTION πŸ’…

so `cog` is a <hotpink>small, single-window web browser</hotpink> built on top of **WPE WebKit**. the way that it has *no user interface at all* is honestly so iconic of it β€” it's literally designed to be used as a web application container for embedded devices running in **kiosk mode**. it's giving "just show the website and mind your business" energy, and I respect it deeply. πŸ‘‘

now, where does the URL come from? you've got two options bestie, and you only need one:

- pass it straight from the **command-line**, or
- set it in the **`COG_URL`** environment variable.

periodt. that's the whole entry point.

---

# πŸŽ€ OPTIONS πŸŽ€

- **`-h`, `--help`** β€” show help options. your girl is here to help fr fr πŸ’–
- **`--version`** β€” print version and exit. quick lil flex then bye πŸ‘‹
- **`--print-appid`** β€” print application ID and exit.
- **`--scale=FACTOR`** β€” zoom/scaling factor applied to Web content (*default: `1.0`, no scaling*). leave it alone and everything stays its normal size ✨
- **`--device-scale=FACTOR`** β€” output device scaling factor (*default: `1.0`, no scaling, 96 DPI*).
- **`--doc-viewer`** β€” document viewer mode: optimizes for local loading of Web content. heads up tho, it **reduces memory usage at the cost of reducing caching of resources loaded from the network** β€” so it's a trade, bestie, pick your fighter 😭
- **`-d`, `--dir-handler=SCHEME:PATH`** β€” add a URI scheme handler for a directory. map a scheme to a path, slay πŸ—‚οΈ
- **`--webprocess-failure=ACTION`** β€” action on WebProcess failures. your options are: `error-page` (the default), `exit`, `exit-ok`, `restart`. choose wisely πŸ’€
- **`-C`, `--config=PATH`** β€” path to a configuration file.
- **`-b`, `--bg-color=BG_COLOR`** β€” background color, written as a CSS name *or* in `#RRGGBBAA` hex syntax (*default: `white`*). yes you get the alpha channel, we love that for us 🀍
- **`-P`, `--platform=NAME`** β€” platform plug-in to use.
- **`-O`, `--platform-params=PARAMETERS`** β€” comma separated list of platform parameters.
- **`--web-extensions-dir=PATH`** β€” load Web Extensions from the given directory.
- **`-F`, `--content-filter=PATH`** β€” load a JSON file as a content filter.

---

# 🌈 ENVIRONMENT 🌈

the env vars, aka the "set it and forget it" girlies:

- **`COG_URL`** β€” URL of the website to be opened.
- **`COG_PLATFORM_NAME`** β€” platform plug-in to use.
- **`COG_PLATFORM_PARAMS`** β€” comma separated list of platform parameters.

---

# πŸ‘€ SEE ALSO πŸ‘€

`cogctl(1)` β€” go read that one next, iykyk 🫢

---

# πŸ’œ AUTHOR πŸ’œ

This manual page was written by **Alberto Garcia** `<berto@igalia.com>` β€” thank you king, we appreciate you πŸŽ€

---

> and that's the whole page bestie, no notes, you're basically a `cog` expert now πŸ’…

okay bye ily β€” this was the `cog(1)` page from **General Commands Manual**, dated **Jan 25, 2020**. see u next time, mwah πŸ˜­πŸ’–
πŸ“¦ where this page comes from