From fef4b59ade496bb127cc0506cd0506636c4e9852 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Sun, 21 Aug 2022 18:35:44 -0400 Subject: add discord config --- modules/50-discord/discord.json | 84 +++++++++++++++++++++++++++++++++++++++++ modules/50-discord/install.sh | 24 ++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 modules/50-discord/discord.json create mode 100644 modules/50-discord/install.sh (limited to 'modules') diff --git a/modules/50-discord/discord.json b/modules/50-discord/discord.json new file mode 100644 index 0000000..e4fa387 --- /dev/null +++ b/modules/50-discord/discord.json @@ -0,0 +1,84 @@ +{ + "modules": { + "postnet": true, + "sentrynerf": true, + "pseudoscience": true, + "loadingScreen": true, + "antiDelete": { + "options": { + "logEdits": true, + "ignorePluralKit": true + }, + "enabled": true + }, + "typingChannel": { + "options": { + "ignoreSelf": true + }, + "enabled": true + }, + "channelleak": true, + "hiddenTyping": { + "enabled": true, + "options": { + "whenInvisible": true + } + }, + "noReplyMention": true, + "pinnedDMs": { + "options": { + "pinned": [] + }, + "enabled": true + }, + "popoutMutuals": true, + "popoutDates": true, + "premiumVideo": true, + "pseudoNitro": true, + "timeInCall": true, + "whoReacted": true, + "3y3": true, + "backoffNerf": true, + "commands": true, + "consistentLayout": true, + "dblClickEdit": { + "enabled": false, + "options": { + "allowEdit": false, + "allowReply": true + } + }, + "fixmentions": true, + "greentext": true, + "imgxis": false, + "linuxUpdater": true, + "noJoinMessageWave": true, + "noReplyChainNag": true, + "noThreadNotifications": true, + "oldQuote": true, + "platformIcons": true, + "showTag": true, + "upload": true, + "unravelMessage": true, + "activitiesEverywhere": true, + "autoPatch": true, + "copyAvatarUrl": true, + "guildVideo": true, + "imageUrls": true, + "messageLinkPreview": true, + "alwaysTrust": true, + "clearUrls": true, + "inviteToNowhere": true, + "panic": true, + "timestampSeconds": false, + "typingAvatars": true, + "css": { + "enabled": true, + "options": { + "cssPath": [ + "/home/chef/.config/hh3/styles.css" + ] + } + } + } +} diff --git a/modules/50-discord/install.sh b/modules/50-discord/install.sh new file mode 100644 index 0000000..1589a5c --- /dev/null +++ b/modules/50-discord/install.sh @@ -0,0 +1,24 @@ +_script="$(realpath ${BASH_SOURCE[0]})" +_scriptname="$(basename $_script)" +_scriptdir="$(dirname $_script)" +_modulename="$(basename $_scriptdir)" +DOT_MODULE_NAME="neofetch" + +function preinstall() { + if ! [[ -x "$(command -v discord)" ]]; then + PACKAGES+=("discord" "alsa-lib") + fi +} + +function install() { + # backup old file if it exists and we haven't backed it up before + if [[ -f "$HOME/.config/hh3/discord.json" ]] && ! [[ -f "$HOME/.config/hh3/discord.json.bak" ]] && ! [[ -f "$_scriptdir/.firstrun" ]]; then + log verbose "making backup" + cp "$HOME/.config/hh3/discord.json" "$HOME/.config/hh3/discord.json.bak" + touch "$_scriptdir/.firstrun" + fi + + log info "linking hh3 config" + mkdir -p "$HOME/.config/hh3" + ln -f "$_scriptdir/discord.json" "$HOME/.config/hh3/discord.json" +} -- cgit v1.2.3