HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

handlr — Manage your default applications. More information: <https://github.com/chmln/handlr#usage>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commanddefaultclimanagehandlrapplicationsmoreyour
linux

Problem

How to use the handlr command: Manage your default applications. More information: <https://github.com/chmln/handlr#usage>.

Solution

handlr — Manage your default applications. More information: <https://github.com/chmln/handlr#usage>.

Open a URL in the default application:
handlr open {{https://example.com}}


Open a PDF in the default PDF viewer:
handlr open {{path/to/file.pdf}}


Set imv as the default application for PNG files:
handlr set {{.png}} {{imv.desktop}}


Set MPV as the default application for all audio files:
handlr set '{{audio/*}}' {{mpv.desktop}}


List all default apps:
handlr list


Print the default application for PNG files:
handlr get {{.png}}

Code Snippets

Open a URL in the default application

handlr open {{https://example.com}}

Open a PDF in the default PDF viewer

handlr open {{path/to/file.pdf}}

Set `imv` as the default application for PNG files

handlr set {{.png}} {{imv.desktop}}

Set MPV as the default application for all audio files

handlr set '{{audio/*}}' {{mpv.desktop}}

List all default apps

handlr list

Context

tldr-pages: linux/handlr

Revisions (0)

No revisions yet.