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
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
GitHub
GitHub - b-ryan/powerline-shell: A beautiful and useful prompt for your shell
A beautiful and useful prompt for your shell. Contribute to b-ryan/powerline-shell development by creating an account on GitHub.
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
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
reddit
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...
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
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
GitLab
Product Usage Tracking (#5672) · Issues · GitLab.com / www-gitlab-com
We are re-thinking our plan around adding product usage tracking to GitLab. See this blog post (https://about.gitlab.com/blog/2019/10/10/update-free-software-and-telemetry/) for context. Feedback welcome.
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
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
reddit
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...
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
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
reddit
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...
Oh look, that severe bug that AMD downplayed is still a big problem
https://arstechnica.com/gadgets/2019/10/how-a-months-old-amd-microcode-bug-destroyed-my-weekend/
https://redd.it/dp3idx
@r_linux
https://arstechnica.com/gadgets/2019/10/how-a-months-old-amd-microcode-bug-destroyed-my-weekend/
https://redd.it/dp3idx
@r_linux
Ars Technica
How a months-old AMD microcode bug destroyed my weekend [UPDATED]
AMD shipped Ryzen 3000 with a serious microcode bug in its random number generator.
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
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
reddit
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...
File Denoscriptors, Input and Output redirection and Piping Data in Linux shell
https://www.infosecshirish.com/file-denoscriptors-input-and-output-redirection-in-linux-shell/
https://redd.it/dp3bq1
@r_linux
https://www.infosecshirish.com/file-denoscriptors-input-and-output-redirection-in-linux-shell/
https://redd.it/dp3bq1
@r_linux
Infosec
File Denoscriptors, Input and Output redirection and Piping Data in Linux shell
Streams, redirection, and pipes are some powerful commandline tools in Linux. Linux treats input and output as streams, which is basically a data entity that can be manipulated.
Wireless daemon for Linux (iwd) 1.0 has been released
https://git.kernel.org/pub/scm/network/wireless/iwd.git/log/
https://redd.it/dp65rz
@r_linux
https://git.kernel.org/pub/scm/network/wireless/iwd.git/log/
https://redd.it/dp65rz
@r_linux
The current adoption status of cgroup v2 in containers
https://medium.com/nttlabs/cgroup-v2-596d035be4d7
https://redd.it/dp6zwq
@r_linux
https://medium.com/nttlabs/cgroup-v2-596d035be4d7
https://redd.it/dp6zwq
@r_linux
Medium
The current adoption status of cgroup v2 in containers
Fedora 31 was released on October 29, 2019. This is the first major distro that comes with cgroup v2 (aka unified hierarchy) enabled by…
monolinux - An embedded Linux distro with a single statically linked executable.
https://github.com/eerimoq/monolinux
https://redd.it/dp6qmx
@r_linux
https://github.com/eerimoq/monolinux
https://redd.it/dp6qmx
@r_linux
GitHub
GitHub - eerimoq/monolinux: Create embedded Linux systems with a single statically linked executable.
Create embedded Linux systems with a single statically linked executable. - eerimoq/monolinux
Notepad++ show their attitude, will linux community join?
https://twitter.com/notepad_plus/status/1189155537977532416
https://redd.it/dp8l6c
@r_linux
https://twitter.com/notepad_plus/status/1189155537977532416
https://redd.it/dp8l6c
@r_linux
Twitter
Notepad++
Notepad++ new release "Free Uyghur" edition (v7.8.1) https://t.co/26csP9b0f1 #FreeUyghur #HumanRightsViolation #China
Unix: A History and a Memoir, by Brian Kernighan
https://www.cs.princeton.edu/~bwk/
https://redd.it/dp8m15
@r_linux
https://www.cs.princeton.edu/~bwk/
https://redd.it/dp8m15
@r_linux
reddit
Unix: A History and a Memoir, by Brian Kernighan
Posted in r/linux by u/mariuz • 6 points and 0 comments
An old-school shell hack on a line printer
https://drewdevault.com/2019/10/30/Line-printer-shell-hack.html
https://redd.it/dp95s5
@r_linux
https://drewdevault.com/2019/10/30/Line-printer-shell-hack.html
https://redd.it/dp95s5
@r_linux
Open Invention Network comes to GNOME'S aid in patent troll fight.
ZDNet: Open Invention Network comes to GNOME's aid in patent troll fight.
https://www.zdnet.com/article/open-invention-network-comes-to-gnomes-aid-in-patent-troll-fight/
https://redd.it/dp9cyq
@r_linux
ZDNet: Open Invention Network comes to GNOME's aid in patent troll fight.
https://www.zdnet.com/article/open-invention-network-comes-to-gnomes-aid-in-patent-troll-fight/
https://redd.it/dp9cyq
@r_linux
ZDNet
Open Invention Network comes to GNOME's aid in patent troll fight | ZDNet
GNOME, the popular Linux desktop, is under attack by Rothschild Patent Imaging, a patent troll. But the non-profit GNOME has friends in this fight. The Open Invention Network is helping defend GNOME.
Unix ( LUnix ) on a Commodore 64
https://www.youtube.com/watch?v=iLJXFFzERA8
https://redd.it/dp3pev
@r_linux
https://www.youtube.com/watch?v=iLJXFFzERA8
https://redd.it/dp3pev
@r_linux
YouTube
Old School Sean - Unix ( LUnix ) on a Commodore 64
The Commodore 64 was an 8-bit computer released in 1982. It was the most successful home computer of all time. A decade after being released, LUnix was created - a Unix-like operating system for the C64. Here is a brief history of the operating system, a…
Librem 5 September 2019 Software Update – Purism
https://puri.sm/posts/librem-5-september-2019-software-update/
https://redd.it/dpeqd3
@r_linux
https://puri.sm/posts/librem-5-september-2019-software-update/
https://redd.it/dpeqd3
@r_linux
Purism
Librem 5 September 2019 Software Update – Purism
Purism makes premium phones, laptops, mini PCs and servers running free software on PureOS. Purism products respect people's privacy and freedom while protecting their security.
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
[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
For those who owns a Tesla
https://sfconservancy.org/blog/2019/oct/30/calling-all-tesla-owners/
https://redd.it/dphaxo
@r_linux
https://sfconservancy.org/blog/2019/oct/30/calling-all-tesla-owners/
https://redd.it/dphaxo
@r_linux
Software Freedom Conservancy
Calling all Tesla owners: let's discuss the source code for the GPLed parts of your car!
It has been many years since we started working with Tesla to help them resolve their ongoing GPL violations. However, Tesla has still not provided the necessary source code for their cars (a benefit of ownership enshrined in the GPL, which Tesla chooses…
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
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
reddit
Is there a Linux music player with ReplayGain and good library...
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...