Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: printer driver installation #837

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions core/tabs/utils/printers/install-epson-printer-drivers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh -e

. ../../common-script.sh

# Function to install drivers for Epson printers
Vorthas marked this conversation as resolved.
Show resolved Hide resolved
installEpsonPrinterDriver() {
clear

case "$PACKAGER" in
pacman)
"${AUR_HELPER}" -S --noconfirm epson-inkjet-printer-escpr
;;
apt-get | nala)
"$ESCALATION_TOOL" "${PACKAGER}" install -y printer-driver-escpr
;;
dnf)
"$ESCALATION_TOOL" "${PACKAGER}" install -y epson-inkjet-printer-escpr
;;
*) ;;
Vorthas marked this conversation as resolved.
Show resolved Hide resolved
esac
}

checkEnv
checkEscalationTool
checkAURHelper
installEpsonPrinterDriver
8 changes: 8 additions & 0 deletions core/tabs/utils/tab_data.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ name = "Set Resolution"
description = "This script is designed to change the resolution of monitors connected to your system"
script = "monitor-control/set_resolutions.sh"

[[data]]
name = "Printers"

[[data.entries]]
name = "Install EPSON printer drivers"
script = "printers/install-epson-printer-drivers.sh"
task_list = "I"

[[data]]
name = "User Account Manager"

Expand Down