mylinuxforwork / dotfiles

The ML4W Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland including an easy to use installation script for Arch based Linux distributions.
GNU General Public License v3.0
437 stars 46 forks source link

[FEATURE] Add printer drivers & cups #28

Closed PSGitHubUser1 closed 2 weeks ago

PSGitHubUser1 commented 1 month ago

$ Describe your feature

I would like to have a printer configs, in your dotfiles, so that anybody can directly configure their printer too...

Here is my gist, it is just a template for you to start with, it will be beneficial for others.. like me or newbies to Arch. To configure their printers.

My gist installs system-config-printer, cups & its relatives.. also it enables & start cups with systemctl too, made a choice which asks user to install $Printer_Company_Drivers like Epson or Canon printer drivers..

mylinuxforwork commented 1 month ago

Thanks for sharing your idea. Unfortunately I don't have a printer ;-) That's why I cannot test it currently in my environment.

Maybe someone else can test this script?

PSGitHubUser1 commented 1 month ago

Thanks for sharing your idea. Unfortunately I don't have a printer ;-) That's why I cannot test it currently in my environment.

Maybe someone else can test this script?

We gotta ask somebody else then..

eljejer commented 1 month ago

Thanks for sharing your idea. Unfortunately I don't have a printer ;-) That's why I cannot test it currently in my environment.

Maybe someone else can test this script?

@mylinuxforwork I have an HP printer and could test things with it...

krystalsavage commented 1 month ago

I used one of the scripts created by Mr. Raabe to create my own script for installing printers. I am not sure how to attach here, but it is a quick sample. I personally love the way he scripts everything - sehr schöne!!! The problem is that there are many printers out there and the script would need to be edited for your own printers.

installprinters.md

PSGitHubUser1 commented 1 month ago

I used one of the scripts created by Mr. Raabe to create my own script for installing printers. I am not sure how to attach here, but it is a quick sample. I personally love the way he scripts everything - sehr schöne!!! The problem is that there are many printers out there and the script would need to be edited for your own printers.

installprinters.md

Well have you checked my script though? (Its for post installation template though 🫤)

I think its a good idea to have Printer installation during Dotfiles installation.. (of course, asking first from user). Just out-of-the-box. Rather than wasting hours on a driver pkg.

mylinuxforwork commented 1 month ago

@eljejer Any Updates on this? Can we close this issue?

eljejer commented 1 month ago

@eljejer Any Updates on this? Can we close this issue?

@mylinuxforwork I did not come around yet to testing the add printer & cups installation. I will try to look into it this week...

mylinuxforwork commented 1 month ago

@eljejer Any Updates on this? Can we close this issue?

@mylinuxforwork I did not come around yet to testing the add printer & cups installation. I will try to look into it this week...

Thanks for your feedback.

PSGitHubUser1 commented 3 weeks ago

@eljejer @mylinuxforwork

Any update on this?

eljejer commented 3 weeks ago

@eljejer @mylinuxforwork

Any update on this?

Unfortunately no, not yet. The plan is to look into it coming weekend

eljejer commented 2 weeks ago

@mylinuxforwork today I tested the script that @PSGitHubUser1 linked above. I can confirm that I was able to run the script, choose the drivers for my HP printer, add the printer, and print a test-page. So for a HP printer the script works well, thanks!

PSGitHubUser1 commented 2 weeks ago

@mylinuxforwork today I tested the script that @PSGitHubUser1 linked above. I can confirm that I was able to run the script, choose the drivers for my HP printer, add the printer, and print a test-page. So for a HP printer the script works well, thanks!

@mylinuxforwork it works but as I said it's just a template. Can you configure it to look nice with gum (I guess?) and Implement it in pre-installation OR post-installation of dotfiles?

Also, it will be better to make some arrangements in the code as I code really badly + I'm a beginner in Scripting (.sh)

Note: My script (the template) is completely dependent on the yay package manager. So.. yeah....

PSGitHubUser1 commented 2 weeks ago

So for a HP printer the script works well, thanks!

Yeah. I am happy that it helped, I never installed the Printer drivers on Arch. It was very frustrating for me as I had a habit of GUI like in Ubuntu or Fedora.

And after facing it, I made this so that you won't get frustrated and give up 3-4 times like me.

Also, (in script), if you choose 'Other' printer, you have the option to enter the package name of that printer and it will be installed (just type the correct pkg name 😉). So, it's not just limited to big guys like HP or Epson.

mylinuxforwork commented 2 weeks ago

Sounds great. I will have a look into the script.

mylinuxforwork commented 2 weeks ago

I would remove the check for yay and the snapshot. yay is required for the dotfiles anyway.

The rest looks fine.

Will add the script to the script folder and link it from the welcome app.

mylinuxforwork commented 2 weeks ago

@krystalsavage I have added your script to the main branch for the upcoming 2.9.6. https://github.com/mylinuxforwork/dotfiles/blob/main/share/dotfiles/.config/ml4w/scripts/installprinters.sh

The Printer drivers can be managed in https://github.com/mylinuxforwork/dotfiles/blob/main/share/dotfiles/.config/ml4w/settings/printer-drivers.sh

Thanks again.

PSGitHubUser1 commented 2 weeks ago

@krystalsavage I have added your script to the main branch for the upcoming 2.9.6. https://github.com/mylinuxforwork/dotfiles/blob/main/share/dotfiles/.config/ml4w/scripts/installprinters.sh

The Printer drivers can be managed in https://github.com/mylinuxforwork/dotfiles/blob/main/share/dotfiles/.config/ml4w/settings/printer-drivers.sh

Thanks again.

Ohk. But who's @krystalsavage