scripts/bash/comms.bash

60 lines
1.2 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
# Opening the communication apps with a single command without having to
# get them from dmenu so much. Excludes Firefox and Thunderbird as I have
# them inconsistently installed across systems
set -x
# XMPP
2020-10-11 14:09:51 +03:00
if hash dino 2>/dev/null; then
2023-05-18 12:25:47 +03:00
(dino &)
2020-10-11 14:09:51 +03:00
fi
if hash gajim 2>/dev/null; then
2023-05-18 12:25:47 +03:00
(gajim &)
else
2023-05-18 12:25:47 +03:00
(flatpak run org.gajim.Gajim --quiet &)
fi
# Jami, mostly P2P app
2020-10-11 14:09:51 +03:00
if hash jami-gnome 2>/dev/null; then
2023-05-18 12:25:47 +03:00
(jami-gnome -r &)
2020-10-11 14:09:51 +03:00
fi
# Telegram.org
2023-05-18 12:25:47 +03:00
if [ -f ~/.local/Telegram/Updater ]; then
(~/.local/Telegram/Updater -many -startintray &)
else
2023-05-18 12:25:47 +03:00
if hash telegram-desktop 2>/dev/null; then
(telegram-desktop -many -startintray &)
2023-04-06 12:03:10 +03:00
fi
fi
# Keybase
2020-10-11 14:09:51 +03:00
if hash run_keybase 2>/dev/null; then
2023-05-18 12:25:47 +03:00
(run_keybase &)
2020-10-11 14:09:51 +03:00
fi
# Steam
2020-10-11 14:09:51 +03:00
if hash steam 2>/dev/null; then
2023-05-18 12:25:47 +03:00
(STEAM_FRAME_FORCE_CLOSE=1 steam -silent &)
2020-10-11 14:09:51 +03:00
fi
# Signal
2023-05-18 12:25:47 +03:00
(flatpak run org.signal.Signal --start-in-tray &)
2020-09-17 12:02:00 +03:00
# Microsoft Teams
2023-05-18 12:25:47 +03:00
(flatpak run com.microsoft.Teams &)
2020-09-17 12:02:00 +03:00
2021-01-08 11:11:19 +02:00
# IRC/HexChat
2023-05-18 12:25:47 +03:00
(flatpak run io.github.Hexchat &)
2021-01-08 11:11:19 +02:00
2021-01-24 12:53:54 +02:00
# Matrix
2021-01-30 20:22:07 +02:00
# Elements (previously Riot) perform poorly with this script, use container
# tabs instead or start on-demand.
#(flatpak run im.riot.Riot --profile feneas&)
#(flatpak run im.riot.Riot --profile T2L&)
#(flatpak run im.riot.Riot --profile pirateriot&)
2021-01-24 12:53:54 +02:00
set +x