Skip to content

Commit 51e2cbd

Browse files
harshv5094jeevithakannan2adamperkowskiChrisTitusTech
authored
feat: whatsapp desktop app (#838)
* feat(communication/whatsapp): add whatsapp desktop client * Update core/tabs/applications-setup/communication-apps/whatsapp-setup.sh Co-authored-by: JEEVITHA KANNAN K S <ksjeevithakannan123@gmail.com> * refactor: changing name to zapzap As per @Ilj3954 and @adamperkowski request, I'm changing both option and script name to zapzap (which was the original name of the app) * Update core/tabs/applications-setup/tab_data.toml Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/communication-apps/zapzap-setup.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/communication-apps/zapzap-setup.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/communication-apps/zapzap-setup.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/communication-apps/zapzap-setup.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * chore: adjusting indentation * Update core/tabs/applications-setup/communication-apps/zapzap-setup.sh Co-authored-by: Jeevitha Kannan K S <ksjeevithakannan123@gmail.com> * Update core/tabs/applications-setup/tab_data.toml Co-authored-by: Jeevitha Kannan K S <ksjeevithakannan123@gmail.com> --------- Co-authored-by: JEEVITHA KANNAN K S <ksjeevithakannan123@gmail.com> Co-authored-by: Adam Perkowski <adas1per@protonmail.com> Co-authored-by: Chris Titus <contact@christitus.com>
1 parent b36a7df commit 51e2cbd

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh -e
2+
3+
. ../../common-script.sh
4+
5+
installZapZap() {
6+
if ! command_exists com.rtosta.zapzap && ! command_exists zapzap; then
7+
printf "%b\n" "${YELLOW}Installing Zap-Zap...${RC}"
8+
case "$PACKAGER" in
9+
pacman)
10+
"$AUR_HELPER" -S --needed --noconfirm zapzap
11+
;;
12+
*)
13+
checkFlatpak
14+
flatpak install flathub com.rtosta.zapzap
15+
;;
16+
esac
17+
else
18+
printf "%b\n" "${GREEN}Zap-Zap is already installed.${RC}"
19+
fi
20+
}
21+
22+
checkEnv
23+
installZapZap

core/tabs/applications-setup/tab_data.toml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,17 @@ description = "Sublime Text is a fast, lightweight, and customizable text editor
8484
script = "Developer-tools/sublime-setup.sh"
8585
task_list = "I"
8686

87+
[[data.entries]]
88+
name = "ZapZap"
89+
description = "ZapZap is an open source whatsapp desktop client for Linux users developed by rafatosta."
90+
script = "communication-apps/zapzap-setup.sh"
91+
task_list = "I"
92+
93+
[[data.entries]]
94+
name = "Zoom"
95+
description = "Zoom is a widely-used video conferencing platform that allows users to host virtual meetings, webinars, and online collaboration with features like screen sharing and recording."
96+
script = "communication-apps/zoom-setup.sh"
97+
8798
[[data.entries]]
8899
name = "VS Code"
89100
description = "Visual Studio Code (VS Code) is a lightweight, open-source code editor with built-in support for debugging, version control, and extensions for various programming languages and frameworks."
@@ -279,7 +290,7 @@ task_list = "I"
279290
[[data.preconditions]]
280291
matches = false
281292
data = "command_exists"
282-
values = [ "linutil" ]
293+
values = ["linutil"]
283294

284295
[[data]]
285296
name = "Linutil Updater"
@@ -290,7 +301,7 @@ task_list = "I"
290301
[[data.preconditions]]
291302
matches = true
292303
data = "command_exists"
293-
values = [ "linutil" ]
304+
values = ["linutil"]
294305

295306
[[data]]
296307
name = "Rofi"
@@ -306,7 +317,7 @@ task_list = "I SS"
306317
[[data.preconditions]]
307318
matches = true
308319
data = { environment = "XDG_SESSION_TYPE" }
309-
values = [ "wayland", "Wayland" ]
320+
values = ["wayland", "Wayland"]
310321

311322
[[data]]
312323
name = "ZSH Prompt"

0 commit comments

Comments
 (0)