You are not logged in.

#1 2013-01-14 06:23:18

butler360
Member
Registered: 2012-09-08
Posts: 28

PKGBUILD request for Undistract-me

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

#2 2013-01-14 09:03:05

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,126

Re: PKGBUILD request for Undistract-me

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

#3 2013-01-16 08:29:52

butler360
Member
Registered: 2012-09-08
Posts: 28

Re: PKGBUILD request for Undistract-me

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

#4 2013-01-16 17:53:10

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,126

Re: PKGBUILD request for Undistract-me

In the AUR, with a couple of post-install notes.

https://aur.archlinux.org/packages/undistract-me-bzr/

Offline

#5 2013-01-31 07:20:38

Archer1X
Member
From: Astral World
Registered: 2013-01-31
Posts: 27
Website

Re: PKGBUILD request for Undistract-me

Thank you very much for the upload. It is a very handy tool.


Arch Linux all the way..

Offline

#6 2013-01-31 07:40:01

butler360
Member
Registered: 2012-09-08
Posts: 28

Re: PKGBUILD request for Undistract-me

Oh yeah, forgot to say thanks!

Offline

#7 2013-02-01 18:24:27

djipey
Member
Registered: 2011-07-30
Posts: 80

Re: PKGBUILD request for Undistract-me

No notifications for me, it doesn't work. Do you have any problem ? I use OpenBox, and notify-send works.

Offline

#8 2013-02-01 19:05:06

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,126

Re: PKGBUILD request for Undistract-me

djipey, are you using bash and have your terminal emulator set up as a login shell?

Offline

#9 2013-02-01 19:12:02

djipey
Member
Registered: 2011-07-30
Posts: 80

Re: PKGBUILD request for Undistract-me

yes, I use bash and gnome-terminal, and it is set as a login shell.

Offline

#10 2013-02-21 02:14:23

Archer1X
Member
From: Astral World
Registered: 2013-01-31
Posts: 27
Website

Re: PKGBUILD request for Undistract-me

What happened to undistract-me?
Seems like it have been deleted in AUR..


Arch Linux all the way..

Offline

#11 2013-02-21 02:19:32

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 438

Re: PKGBUILD request for Undistract-me

Offline

#12 2013-02-21 03:12:42

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,061
Website

Re: PKGBUILD request for Undistract-me

Cool.  Thanks for this, will test it later tonight.


github       bible       blog       screenshot

Offline

#13 2013-02-27 20:21:29

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 431

Re: PKGBUILD request for Undistract-me

Thanks, really useful!


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad X200 Tablet, 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

#14 2013-03-30 16:21:28

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 431

Re: PKGBUILD request for Undistract-me

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 X200 Tablet, 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

#15 2015-01-19 17:59:12

fturco
Member
Registered: 2010-07-12
Posts: 38

Re: PKGBUILD request for Undistract-me

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

Board footer

Powered by FluxBB