Linux - Reddit – Telegram
Linux - Reddit
772 subscribers
4.19K photos
207 videos
39.9K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
Get audio confirmation of the success of your shell command!

So, many times I will be running some task that needs its time, like a compilation task, a package installation or upgrade task... And then I need to come back to that shell once it has finished to continue the process.

The problem I used to have is that I sometimes browsed reddit when this long-running task was running and I was polling the terminal to see the process of the task, which is tiring and you could even day dream for a bit and forget about it for several minutes.

In comes the solution!

Bash provides the PROMPT_COMMAND variable which is something that can runs every time before it displays the prompt: https://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x264.html

It is used in cases like powerline-shell https://github.com/b-ryan/powerline-shell to update the contents of PS1. And I thought another use of it, to get auditory confirmation of whether your command has failed or not:

WITH_SOUND=1

function _sound_confirmation() {
exitCode=$?
if ! [ -z $WITH_SOUND ] && [ $WITH_SOUND -eq 1 ]; then
if [ $exitCode -ne 0 ] && [ $exitCode -ne 130 ]; then # not success and not Ctrl+C
(ogg123 /usr/share/sounds/Oxygen-Sys-App-Error-Critical.ogg 2> /dev/null &)
elif [ $exitCode -ne 130 ]; then
(ogg123 /usr/share/sounds/Oxygen-K3B-Finish-Success.ogg 2> /dev/null &)
fi
fi
}

PROMPT_COMMAND="_sound_confirmation;"

I am using ogg123 and some sound files that exist in my system (using KDE neon) but you can use whatever you like.

The above has helped me a lot and I'm not sure if there's a better way to do it. It has helped me so much with being efficient that it amazes me how there isn't an option for this in terminal emulators.

Have you done anything like this? Can the above be improved?

https://redd.it/dooyd3
@r_linux
Anybody Still Like Screensavers on Linux?

I guess I'm kinda old school, but I'm still a fan of screensavers. It's not really anything practical anymore, but I still like to have cool activity on my screen when it's not being used. I'm just curious, does anyone like screensavers anymore on Linux? I tried looking for Linux screensavers, but the only ones I found looked WAY out of date and in order to get them installed I would have to install super old, sketchy packages. I can still find decent ones for Windows, but not so much for Linux apparently...

https://redd.it/dozf2b
@r_linux
Gitlab rolling back Terms of Service and Telemetry Services changes

I just received this email from Gitlab noscriptd

`We apologize and have rolled back the changes announced in our October 23 email`


>
> Dear GitLab users and customers,
>
> On October 23, we sent an email ennoscriptd “Important Updates to our Terms of Service and Telemetry Services” announcing upcoming changes. Based on considerable feedback from our customers, users, and the broader community, we reversed course the next day and removed those changes before they went into effect. Further, GitLab will commit to not implementing telemetry in our products that sends usage data to a third-party product analytics service. This clearly struck a nerve with our community and I apologize for this mistake.
>
> So, what happened? In an effort to improve our user experience, we decided to implement user behavior tracking with both first and third-party technology. Clearly, our evaluation and communication processes for rolling out a change like this were lacking and we need to improve those processes. But that’s not the main thing we did wrong.
>
> Our main mistake was that we did not live up to our own core value of collaboration by including our users, contributors, and customers in the strategy discussion and, for that, I am truly sorry. It shouldn’t have surprised us that you have strong feelings about opt-in/opt-out decisions, first versus third-party tracking, data protection, security, deployment flexibility and many other topics, and we should have listened first.
>
> So, where do we go from here? The first step is a retrospective that is happening on October 29 to document what went wrong. We are reaching out to customers who expressed concerns and collecting feedback from users and the wider community. We will put together a new proposal for improving the user experience and share it for feedback. We made a mistake by not collaborating, so now we will take as much time as needed to make sure we get this right. You can be part of the collaboration by posting comments in this issue: https://gitlab.com/gitlab-com/www-gitlab-com/issues/5672. If you are a customer, you may also reach out to your GitLab representative if you have additional feedback.
>
> I am glad you hold GitLab to a higher standard. If we are going to be transparent and collaborative, we need to do it consistently and learn from our mistakes.
>
> Sincerely,
> Sid Sijbrandij
> Co-Founder and CEO
> GitLab
>

https://redd.it/dozsfr
@r_linux
Weekly Questions and Hardware Thread - October 30, 2019

Welcome to r/linux! If you're new to Linux or trying to get started this thread is for you. Get help here or as always, check out r/linuxquestions or r/linux4noobs

This megathread is for all your question needs. As we don't allow questions on r/linux outside of this megathread, please consider using r/linuxquestions or r/linux4noobs for the best solution to your problem.

Ask your hardware requests here too or try r/linuxhardware!

https://redd.it/dp1pni
@r_linux
POP OS

I just ordered a system 76 laptop with their custom operating system POP OS. Was wondering if anyone who has used it could share their opinion of it. I here its similar to ubutnu.

https://redd.it/doztfp
@r_linux
Alternatives to Thunderbird

Hi r/linux!

I'm actually searching for a mail client. I don't use emails a lot, so complex mail managers like outlook or thunderbird aren't the best for me.

I'm searching for a simple, minimalistic, quite good looking mail manager (something like the default mail manager on win10)

Do you have any suggestions?

https://redd.it/dp42bp
@r_linux
mod linux's firefox to view reddit without bloat

[https://raw.githubusercontent.com/tokzco/cssz/master/reddit.css](https://raw.githubusercontent.com/tokzco/cssz/master/reddit.css)

​

[https://raw.githubusercontent.com/tokzco/cssz/master/reddit.png](https://raw.githubusercontent.com/tokzco/cssz/master/reddit.png)

​

cheerz ;)

https://redd.it/dph65q
@r_linux
Is there a Linux music player with ReplayGain and good library management that doesn't suck?

In the past year since switching my personal laptop from Windows 10 to Linux, I've been searching for a good music player app. On Windows I used MediaMonkey.

I must have tried at least 20 or 30 different Linux music players since then. I finally settled on Clementine, but it has some bugs which are making it nearly unusable for me. The biggest issue is that it seems to have a bad memory leak. I spend a lot of time creating playlists, which means I'm listening to the first 10-20 seconds of a ton of songs, one after the other, trying to decide if I want it in my playlist. Every time I do this, it bogs down after a few minutes. Songs start to buffer for a few seconds when I click on them, instead of playing immediately. Then it buffers again if I try to skip ahead in the song. Eventually it just freezes up altogether. So I've gotten in the habit of restarting the application as soon as it starts to buffer. Since development on Clementine seems to have halted in 2016, there's seemingly no chance for a bug fix, unless I want to delve into the code myself. But even when it's working normally, I don't like Clementine that much. So investing the time to fix the bug(s) doesn't seem worth it. And I have too many side projects as it is.

So, are there any Linux music player apps that don't suck? Ideally, there would be something like MediaMonkey for Linux. But as a bare minimum, I need something with ReplayGain support, good (but not necessarily stellar) library management features, and ease of creating/managing playlists.

Btw, I have gotten MediaMonkey to run in Wine, but not reliably. And I'd prefer to have a native app rather than constantly having to troubleshoot Wine issues for every new MediaMonkey release, or every time I decide to switch Linux distros.

https://redd.it/dphy4j
@r_linux