cog(1)
π 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
- debian trixie: cog 0.18.4-1 Β· MIT
- opensuse-leap 16.0: cog 0.18.4-bp160.1.8 Β· MIT
- opensuse-leap 16.0: cog 0.18.4-bp160.1.8 Β· MIT
- opensuse-leap 16.0: cog 0.18.4-bp160.1.8 Β· MIT
- opensuse-leap 16.0: cog 0.18.4-bp160.1.8 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms