summaryrefslogtreecommitdiffstats
path: root/.local/bin/ref-unison.pl
blob: 680960d2642bcfe851454837a8e29c74dc0cf503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/local/bin/perl

use strict;
use warnings;

use constant {
	UNISON_PATH			=> '/usr/local/bin/unison',
	NOTIFY_SEND_PATH	=> '/usr/local/bin/notify-send'
};

sub main
{
	system(
		NOTIFY_SEND_PATH,
		'unison',
		'-u',
		'low',
		'Synchronizing files...'
	);
	system(
		UNISON_PATH,
		'-ui',
		'text',
		'/usr/home/jozan/.local/share/newsboat/cache.db',
		'ssh://root@jozanleclerc.xyz//root/unison/.local/share/newsboat/cache.db'
	);
	system(
		UNISON_PATH,
		'-ui',
		'text',
		'/usr/home/jozan/.abook/addressbook',
		'ssh://root@jozanleclerc.xyz//root/unison/.abook/addressbook'
	);
	exit 0;
}

main();

__END__