mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-28 19:27:13 +08:00
Add command to launch discord with chromium on Arch
This is due to Arch naming the chromium binary `chromium` and Ubuntu / Debian naming it `chromium-browser`
This commit is contained in:
parent
041bac14b5
commit
b7a4021647
1 changed files with 6 additions and 2 deletions
|
|
@ -19,8 +19,12 @@ apps.telegram = function ()
|
|||
helpers.run_or_raise({class = 'TelegramDesktop'}, false, "telegram", { switchtotag = true })
|
||||
end
|
||||
apps.discord = function ()
|
||||
-- Run or raise Discord running on the browser, spawned with Chromium browser's app mode
|
||||
helpers.run_or_raise({instance = 'discordapp.com__channels_@me'}, false, "chromium-browser --app=\"https://discordapp.com/channels/@me\"")
|
||||
-- Run or raise Discord running in the browser, spawned with Chromium browser's app mode
|
||||
-- >> Ubuntu / Debian
|
||||
-- helpers.run_or_raise({instance = 'discordapp.com__channels_@me'}, false, "chromium-browser --app=\"https://discordapp.com/channels/@me\"")
|
||||
-- >> Arch
|
||||
helpers.run_or_raise({instance = 'discordapp.com__channels_@me'}, false, "chromium --app=\"https://discordapp.com/channels/@me\"")
|
||||
|
||||
-- Run or raise Discord app
|
||||
-- helpers.run_or_raise({class = 'discord'}, false, "discord")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue