You are not logged in.
This is a simple utility that will notify you when your console command completes: http://www.webupd8.org/2013/01/notifies … ct-me.html
Not sure if many people are aware of it, but it would be nice to have. Thanks!
Offline
Want to test it? If all is well, I'll put it in the AUR. Just install, log out, and log back in.
pkgname=undistract-me-bzr
pkgver=15
pkgrel=1
pkgdesc="Alerts you when long-running commands finally complete"
arch=('any')
url="http://mumak.net/undistract-me/"
license=('Expat')
depends=('bash' 'notification-daemon')
makedepends=('bzr')
_bzrtrunk=http://bazaar.launchpad.net/~undistract-me-dev/undistract-me/trunk
_bzrmod=undistract-me
build() {
cd "$srcdir"
msg "Connecting to Bazaar server...."
if [[ -d "$_bzrmod" ]]; then
cd "$_bzrmod" && bzr --no-plugins pull "$_bzrtrunk" -r "$pkgver"
msg "The local files are updated."
else
bzr --no-plugins branch "$_bzrtrunk" "$_bzrmod" -q -r "$pkgver"
fi
msg "Bazaar checkout done or server timeout"
}
package() {
cd "$srcdir/$_bzrmod"
install -Dm755 long-running.bash "$pkgdir/usr/share/$_bzrmod/long-running.bash"
install -Dm755 preexec.bash "$pkgdir/usr/share/$_bzrmod/preexec.bash"
install -Dm644 README.md "$pkgdir/usr/share/$_bzrmod/README.md"
install -Dm755 undistract-me.sh "$pkgdir/etc/profile.d/undistract-me.sh"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Last edited by Scimmia (2013-01-14 09:11:43)
Offline
Seems to be working fine, thanks!
Perhaps a post-install note?
To get Undistract-me to work, you must enable "Run command as a login shell" in your terminal.
Offline
In the AUR, with a couple of post-install notes.
Offline
Thank you very much for the upload. It is a very handy tool.
Arch Linux all the way..
Offline
Oh yeah, forgot to say thanks!
Offline
No notifications for me, it doesn't work. Do you have any problem ? I use OpenBox, and notify-send works.
Offline
djipey, are you using bash and have your terminal emulator set up as a login shell?
Offline
yes, I use bash and gnome-terminal, and it is set as a login shell.
Offline
What happened to undistract-me?
Seems like it have been deleted in AUR..
Arch Linux all the way..
Offline
Offline
Cool. Thanks for this, will test it later tonight.
Offline
Thanks, really useful!
Desktop: http://www.sysprofile.de/id15562, Arch Linux | Notebook: Thinkpad L13 Yoga Gen2, Manjaro
The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work. - Tuomas Lukka
Offline
Doesn anyone else have the problem that the notification shows the wrong command (one of the commands being run before the command that terminated) and the wrong execution time ("sleep 11" can take over 20s for example)?
Desktop: http://www.sysprofile.de/id15562, Arch Linux | Notebook: Thinkpad L13 Yoga Gen2, Manjaro
The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work. - Tuomas Lukka
Offline
I use GNOME Terminal under GNOME and it doesn't work even if I enable "Run command as a login shell" in the profile. As a workaround I added the "source /etc/profile.d/undistract-me.sh" command in ~/.bashrc. Bug report: https://github.com/jml/undistract-me/issues/23.
Offline